1 import { c } from 'ttag';
3 import SettingsParagraph from '@proton/components/containers/account/SettingsParagraph';
5 import DayOfMonthField from './fields/DayOfMonthField';
6 import TimeField from './fields/TimeField';
7 import TimeZoneField from './fields/TimeZoneField';
8 import type { AutoReplyFormModel } from './interfaces';
11 model: AutoReplyFormModel;
12 updateModel: (key: string) => (value: any) => void;
15 const AutoReplyFormMonthly = ({ model: { start, end, timezone }, updateModel }: Props) => {
19 {c('Info').t`Auto-reply is active each month between the selected start and end time.`}
23 label={c('Label').t`Start day of month`}
25 onChange={updateModel('start.day')}
29 onChange={updateModel('start.time')}
30 label={c('Label').t`Start time`}
35 label={c('Label').t`End day of month`}
37 onChange={updateModel('end.day')}
41 onChange={updateModel('end.time')}
42 label={c('Label').t`End time`}
45 <TimeZoneField value={timezone} onChange={updateModel('timezone')} />
50 export default AutoReplyFormMonthly;