1 import type { NotificationModel } from '../../interfaces/calendar';
2 import type { VcalValarmComponent } from '../../interfaces/calendar/VcalModel';
3 import { ICAL_ALARM_ACTION, NOTIFICATION_TYPE_API } from '../constants';
4 import { getValarmTrigger } from './getValarmTrigger';
6 export const modelToValarmComponent = (notificationModel: NotificationModel): VcalValarmComponent => {
10 value: getValarmTrigger(notificationModel),
14 notificationModel.type === NOTIFICATION_TYPE_API.EMAIL
15 ? ICAL_ALARM_ACTION.EMAIL
16 : ICAL_ALARM_ACTION.DISPLAY,