import { WorkflowActions } from "@prisma/client"; import dayjs from "@calcom/dayjs"; import { APP_NAME } from "@calcom/lib/constants"; const emailReminderTemplate = ( isEditingMode: boolean, action?: WorkflowActions, startTime?: string, endTime?: string, eventName?: string, timeZone?: string, otherPerson?: string, name?: string, isBrandingDisabled?: boolean ) => { let eventDate = ""; if (isEditingMode) { endTime = "{EVENT_END_TIME}"; eventName = "{EVENT_NAME}"; timeZone = "{TIMEZONE}"; otherPerson = action === WorkflowActions.EMAIL_ATTENDEE ? "{ORGANIZER}" : "{ATTENDEE}"; name = action === WorkflowActions.EMAIL_ATTENDEE ? "{ATTENDEE}" : "{ORGANIZER}"; eventDate = "{EVENT_DATE_ddd, MMM D, YYYY H:mmA}"; } else { eventDate = dayjs(startTime).tz(timeZone).format("ddd, MMM D, YYYY H:mmA"); endTime = dayjs(endTime).tz(timeZone).format("H:mmA"); } const emailSubject = `Reminder: ${eventName} - ${eventDate}`; const introHtml = `
Hi${ name ? " " + name : "" },