()
| 134 | ); |
| 135 | |
| 136 | const commit = () => { |
| 137 | if (selection?.from && selection?.to) { |
| 138 | onChange(toBoundary(selection.from, selection.to, now ?? new Date())); |
| 139 | } |
| 140 | setOpen(false); |
| 141 | }; |
| 142 | |
| 143 | const handlePreset = (preset: DateRangePreset) => { |
| 144 | const { from, to } = preset.range(); |
nothing calls this directly
no test coverage detected