"use client"; import Link from "next/link"; import { X, MapPin, Maximize2, ArrowRight } from "lucide-react"; import type { ParcelBboxItem } from "@/lib/site-finder-api"; import { addLocalRecentParcel } from "@/lib/site-finder-api"; import { STATUS_COLORS, STATUS_LABELS } from "./ParcelLegend"; interface ParcelDrawerProps { parcel: ParcelBboxItem | null; onClose: () => void; } const VRI_LABELS: Record = { multistory: "Многоэтажный", mixed: "Смешанный", individual: "ИЖС", office: "Офисный", other: "Иное", }; export function ParcelDrawer({ parcel, onClose }: ParcelDrawerProps) { if (!parcel) return null; const statusColor = STATUS_COLORS[parcel.status] ?? "#73767E"; const statusLabel = STATUS_LABELS[parcel.status] ?? parcel.status; return ( // Drawer panel — absolute within the map container (parent has position:relative). // This keeps the sidebar (CadInput/RecentParcels/ParcelLegend) always visible // and only overlaps the map area on parcel select. ); }