Cleanup - unused files / unused exports / duplicate exports
[ProtonMail-WebClient.git] / packages / shared / lib / calendar / alarms / modelToNotifications.ts
blob51fd6b29753f83273e8266a63fe612ff513095f0
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)),
9     }));