1 import { c } from 'ttag';
3 import type { CheckboxProps } from '@proton/components';
4 import { Checkbox } from '@proton/components';
6 interface Props extends Omit<CheckboxProps, 'onChange'> {
8 onChange: (value: boolean) => void;
11 const AllDayCheckbox = ({ checked, onChange, ...rest }: Props) => {
14 id="event-allday-checkbox"
16 onChange={({ target }) => onChange(target.checked)}
19 {c('Label').t`All day`}
24 export default AllDayCheckbox;