Update all non-major dependencies
[ProtonMail-WebClient.git] / applications / calendar / src / app / metrics / calendarMetricsHelper.ts
blobb94cccd4d84c84b134c51be310fd062760ede0fe
1 import { FREQUENCY } from '@proton/shared/lib/calendar/constants';
3 import type { CalendarViewEventTemporaryEvent } from '../containers/calendar/interface';
5 export const getNESTData = (temporaryEvent: CalendarViewEventTemporaryEvent) => {
6     return {
7         isRecurring: temporaryEvent.tmpData.frequencyModel.frequency !== FREQUENCY.ONCE,
8         hasInvitees: temporaryEvent.tmpData.attendees.length > 0,
9         hasConferenceData: !!temporaryEvent.tmpData.conferenceId && !!temporaryEvent.tmpData.conferenceUrl,
10     };