1 import { joinHolidaysCalendar } from '../../../api/calendars';
2 import type { Address, Api } from '../../../interfaces';
4 CalendarNotificationSettings,
5 HolidaysDirectoryCalendar,
6 JoinHolidayCalendarResponse,
7 } from '../../../interfaces/calendar';
8 import type { GetAddressKeys } from '../../../interfaces/hooks/GetAddressKeys';
9 import { getJoinHolidaysCalendarData } from '../../holidaysCalendar/holidaysCalendar';
12 holidaysCalendar: HolidaysDirectoryCalendar;
14 notifications: CalendarNotificationSettings[];
16 getAddressKeys: GetAddressKeys;
20 const setupHolidaysCalendarHelper = async ({
29 const { calendarID, addressID, payload } = await getJoinHolidaysCalendarData({
37 return api<JoinHolidayCalendarResponse>(joinHolidaysCalendar(calendarID, addressID, payload));
40 export default setupHolidaysCalendarHelper;