import { TFunction } from "next-i18next"; import { CAL_URL } from "@calcom/lib/constants"; import { BaseEmailHtml, CallToAction } from "../components"; export const DisabledAppEmail = ( props: { appName: string; appType: string[]; t: TFunction; title?: string; eventTypeId?: number; } & Partial> ) => { const { title, appName, eventTypeId, t, appType } = props; return ( {appType.some((type) => type === "payment") ? ( <>

<>{t("disabled_app_affects_event_type", { appName: appName, eventType: title })}

<>{t("payment_disabled_still_able_to_book")}


) : title && eventTypeId ? ( <>

<>{(t("app_disabled_with_event_type"), { appName: appName, title: title })}


) : appType.some((type) => type === "video") ? ( <>

<>{t("app_disabled_video", { appName: appName })}


) : appType.some((type) => type === "calendar") ? ( <>

<>{t("admin_has_disabled", { appName: appName })}

<>{t("disabled_calendar")}


) : ( <>

<>{t("admin_has_disabled", { appName: appName })}


)}
); };