"use client"; import type { ExmnMapFilters, ExmnMapJobType } from "./exmnMapTypes"; type Props = { jobType: ExmnMapJobType; filters: ExmnMapFilters; onFiltersChange: (filters: ExmnMapFilters) => void; }; const GRADE_OPTIONS = ["", "1", "2", "3", "4", "5"]; /** 조사결과 레이어의 세 가지 자동 적용 필터다. */ export default function ExmnLayerSettingPanel({ jobType, filters, onFiltersChange, }: Props) { const updateFilter = (key: keyof ExmnMapFilters, value: string) => { onFiltersChange({ ...filters, [key]: value.replace(/[^0-9]/g, ""), }); }; const selectClass = "h-[24px] w-[54px] rounded-[4px] border border-input bg-background px-2 text-[1rem] text-foreground outline-none focus:border-primary"; const labelClass = "shrink-0 text-[1.05rem] font-medium text-label"; return (