"use client"; /** * DevelopmentPotentialCard — lower-grid «Development Potential» card. Renders the * REAL ёмкость-метрики (площадь · КСИТ · плотность · высота · пятно · продаваемая) * from `adaptPotentialCard` (geometry + НСПД-регламент, post-#1847) as the * prototype's `.potential-grid` tiles, honest «—» where an input is absent. * "Подробнее" opens the potential drawer. */ import styles from "@/app/site-finder/analysis/[cad]/ptica/ptica.module.css"; import type { ParcelAnalysis } from "@/types/site-finder"; import { adaptPotentialCard } 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; } export function DevelopmentPotentialCard({ analysis, onOpenDrawer }: Props) { const { metrics } = adaptPotentialCard(analysis); return (

Development Potential

{metrics.map((m) => (
{m.label}
{m.value} {m.unit && {m.unit}}
))}
); }