(date: Date | undefined)
| 17 | onChange, |
| 18 | }: { value: Date; onChange: (date: Date) => void }) { |
| 19 | function handleDateSelect(date: Date | undefined) { |
| 20 | if (date) { |
| 21 | onChange(date); |
| 22 | } |
| 23 | } |
| 24 | |
| 25 | function handleTimeChange(type: 'hour' | 'minute', value: string) { |
| 26 | const currentDate = value || new Date(); |
nothing calls this directly
no test coverage detected