import { IS_PRODUCTION, BASE_URL } from "@lib/config/constants"; export type BodyHeadType = "checkCircle" | "xCircle" | "calendarCircle"; export const getHeadImage = (headerType: BodyHeadType): string => { switch (headerType) { case "checkCircle": return IS_PRODUCTION ? BASE_URL + "/emails/checkCircle@2x.png" : "https://app.cal.com/emails/checkCircle@2x.png"; case "xCircle": return IS_PRODUCTION ? BASE_URL + "/emails/xCircle@2x.png" : "https://app.cal.com/emails/xCircle@2x.png"; case "calendarCircle": return IS_PRODUCTION ? BASE_URL + "/emails/calendarCircle@2x.png" : "https://app.cal.com/emails/calendarCircle@2x.png"; } }; export const emailSchedulingBodyHeader = (headerType: BodyHeadType): string => { const image = getHeadImage(headerType); return `
`; };