1 import type { NotificationModel } from '../../interfaces/calendar';
2 import { getValarmTrigger } from '../alarms/getValarmTrigger';
3 import { toTriggerString } from '../vcal';
5 export const modelToNotifications = (notifications: NotificationModel[] = []) => {
6 return notifications.map((notificationModel) => ({
7 Type: notificationModel.type,
8 Trigger: toTriggerString(getValarmTrigger(notificationModel)),