const isProduction = process.env.NODE_ENV === "production"; export type BodyHeadType = "checkCircle" | "xCircle" | "calendarCircle"; export const getHeadImage = (headerType: BodyHeadType) => { switch (headerType) { case "checkCircle": return isProduction ? "https://www.cal.com/emails/checkCircle@2x.png" : "https://i.imgur.com/6BHFgjS.png"; case "xCircle": return isProduction ? "https://www.cal.com/emails/xCircle@2x.png" : "https://i.imgur.com/44Dq2je.png"; case "calendarCircle": return isProduction ? "https://www.cal.com/emails/calendarCircle@2x.png" : "https://i.imgur.com/aQOp1mm.png"; } }; export const emailSchedulingBodyHeader = (headerType: BodyHeadType): string => { const image = getHeadImage(headerType); return `
`; };