Cleanup - unused files / unused exports / duplicate exports
[ProtonMail-WebClient.git] / applications / calendar / src / app / containers / alarms / AlarmContainer.tsx
blobd5aac822e3826159f6699bc16ce9ee79bb3cc828
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';
10 interface Props {
11     calendars: Calendar[];
12     tzid: string;
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;