/** * 화면명: 관로조사 레이어 설정 * 사업차수와 조사 종류·상태등급별 지도 표시 조건을 설정한다. */ "use client"; import type { ExmnMapFilters, ExmnMapJobType } from "./exmnMapTypes"; import LayerSettingCard from "../layerSetting/LayerSettingCard"; type Props = { jobType: ExmnMapJobType; filters: ExmnMapFilters; onFiltersChange: (filters: ExmnMapFilters) => void; enabled?: boolean; onEnabledChange?: (enabled: boolean) => void; onClose?: () => void; }; const GRADE_OPTIONS = ["", "1", "2", "3", "4", "5"]; /** 조사결과 레이어의 세 가지 자동 적용 필터다. */ export default function ExmnLayerSettingPanel({ jobType, filters, onFiltersChange, enabled = true, onEnabledChange = () => {}, onClose = () => {}, }: Props) { const updateFilter = (key: keyof ExmnMapFilters, value: string) => { onFiltersChange({ ...filters, [key]: value.replace(/[^0-9]/g, ""), }); }; const selectClass = "h-[26px] w-full rounded border border-input bg-background px-2 py-0 text-center text-[12px] leading-none text-foreground outline-none focus:border-primary"; const labelClass = "shrink-0 text-[1.15rem] font-medium text-label"; const title = jobType === "PPL" ? "관로조사" : "맨홀조사"; return (
); }