"use client"; import type { ParcelAnalysis } from "@/types/site-finder"; import { SectionLabel } from "@/components/ui/SectionLabel"; import { EmptyState } from "@/components/ui/EmptyState"; import { GeologyBlock } from "./GeologyBlock"; import { GeometrySuitabilityBlock } from "./GeometrySuitabilityBlock"; import { GeotechRiskBlock } from "./GeotechRiskBlock"; import { NeighborsBlock } from "./NeighborsBlock"; import { NspdZoningBlock } from "./NspdZoningBlock"; import { NspdZouitOverlapsBlock } from "./NspdZouitOverlapsBlock"; import { NspdEngineeringNearbyBlock } from "./NspdEngineeringNearbyBlock"; import { NspdRiskZonesBlock } from "./NspdRiskZonesBlock"; import { NspdOpportunityBlock } from "./NspdOpportunityBlock"; import { NspdRedLinesBlock } from "./NspdRedLinesBlock"; import { NspdFreshnessBadge } from "./NspdFreshnessBadge"; interface Props { data: ParcelAnalysis; } export function LandTab({ data }: Props) { const hasAny = data.geotech_risk !== undefined || data.geology !== undefined || data.geometry_suitability !== undefined || data.neighbors_summary !== undefined || data.nspd_zoning !== undefined || data.nspd_zouit_overlaps !== undefined || data.nspd_engineering_nearby !== undefined || data.nspd_risk_zones !== undefined || (data.nspd_opportunity_parcels !== undefined && (data.nspd_opportunity_parcels?.length ?? 0) > 0) || (data.nspd_red_lines !== undefined && (data.nspd_red_lines?.length ?? 0) > 0); return (