Merge branch 'feat/inda-383-daily-stat' into 'main'
[ProtonMail-WebClient.git] / applications / calendar / src / app / components / eventModal / inputs / AllDayCheckbox.tsx
blob7292b5381b05e82bba359d634651d4b32a44dff6
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'> {
7     checked: boolean;
8     onChange: (value: boolean) => void;
11 const AllDayCheckbox = ({ checked, onChange, ...rest }: Props) => {
12     return (
13         <Checkbox
14             id="event-allday-checkbox"
15             checked={checked}
16             onChange={({ target }) => onChange(target.checked)}
17             {...rest}
18         >
19             {c('Label').t`All day`}
20         </Checkbox>
21     );
24 export default AllDayCheckbox;