1 import { FREQUENCY } from '@proton/shared/lib/calendar/constants';
3 import type { CalendarViewEventTemporaryEvent } from '../containers/calendar/interface';
5 export const getNESTData = (temporaryEvent: CalendarViewEventTemporaryEvent) => {
7 isRecurring: temporaryEvent.tmpData.frequencyModel.frequency !== FREQUENCY.ONCE,
8 hasInvitees: temporaryEvent.tmpData.attendees.length > 0,
9 hasConferenceData: !!temporaryEvent.tmpData.conferenceId && !!temporaryEvent.tmpData.conferenceUrl,