1 import type { MutableRefObject } from 'react';
3 import type { Calendar } from '@proton/shared/lib/interfaces/calendar';
5 import type { CalendarsEventsCache } from '../calendar/eventStore/interface';
6 import AlarmWatcher from './AlarmWatcher';
7 import type { CalendarsAlarmsCache } from './CacheInterface';
8 import useCalendarsAlarms from './useCalendarsAlarms';
11 calendars: Calendar[];
13 calendarsAlarmsCacheRef: MutableRefObject<CalendarsAlarmsCache>;
14 calendarsEventsCacheRef: MutableRefObject<CalendarsEventsCache>;
17 const AlarmContainer = ({ calendars, tzid, calendarsAlarmsCacheRef, calendarsEventsCacheRef }: Props) => {
18 const alarms = useCalendarsAlarms(calendars, calendarsAlarmsCacheRef);
19 return <AlarmWatcher alarms={alarms} tzid={tzid} calendarsEventsCacheRef={calendarsEventsCacheRef} />;
22 export default AlarmContainer;