1 import { c } from 'ttag';
3 import SettingsParagraph from '@proton/components/containers/account/SettingsParagraph';
5 import DaysOfWeekField from './fields/DaysOfWeekField';
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 AutoReplyFormDaily = ({ model: { daysOfWeek, start, end, timezone }, updateModel }: Props) => {
20 .t`Auto-reply is always active on the days of the week you select, between the selected hours.`}
22 <DaysOfWeekField value={daysOfWeek} onChange={updateModel('daysOfWeek')} />
25 onChange={updateModel('start.time')}
26 label={c('Label').t`Start time`}
31 onChange={updateModel('end.time')}
32 label={c('Label').t`End time`}
35 <TimeZoneField value={timezone} onChange={updateModel('timezone')} />
40 export default AutoReplyFormDaily;