interface DateRangeInputProps { startDate: string; endDate: string; onStartChange: (value: string) => void; onEndChange: (value: string) => void; startLabel?: string; endLabel?: string; } /** 시작일~종료일 날짜 입력 (자동 보정) */ export default function DateRangeInput({ startDate, endDate, onStartChange, onEndChange, startLabel = "시작일", endLabel = "종료일", }: DateRangeInputProps) { const handleStartChange = (value: string) => { onStartChange(value); if (endDate && value > endDate) onEndChange(value); }; const handleEndChange = (value: string) => { onEndChange(value); if (startDate && value < startDate) onStartChange(value); }; return ( <> {/* 시작일 */}