"use client"; /** * ParcelPassportCard — passport KV-grid (hero col 2). Mono cad number; every * value flows from the adapter view-model, so placeholders render muted "—" * with their caption rather than fake live data. */ import styles from "@/app/site-finder/analysis/[cad]/ptica/ptica.module.css"; import type { ParcelAnalysis } from "@/types/site-finder"; import { adaptPassport } from "@/components/site-finder/ptica/ptica-adapt"; import type { PticaField, PticaPassport, } from "@/components/site-finder/ptica/ptica-adapt"; import type { DrawerKey } from "@/components/site-finder/ptica/drawers/drawer-keys"; interface Props { analysis: ParcelAnalysis; onOpenDrawer: (key: DrawerKey) => void; } function KvCell({ label, field, wide, }: { label: string; field: PticaField; wide?: boolean; }) { return (
{label} {field.value} {field.caption && !field.isReal && ( {field.caption} )}
); } export function ParcelPassportCard({ analysis, onOpenDrawer }: Props) { const p: PticaPassport = adaptPassport(analysis); return (

Паспорт участка

Кадастровый номер {p.cadNum}
); }