* wip * update layoutHOC * wip * remove app router related code no longer used * remove more * await cookies, headers, params, serachparams * update yarn.lock * await cookies, headers, params, serachparams more * update yarn lock again * downgrade next-auth to 4.22.1 * update yarn lock * fix * update yarn lock * fix type checks * update yarn lock * await headers and cookies * restore pages folder * restore yarn.lock * update yarn.lock * await headers and cookies * remove * await params in API routes * updates * restore next.config.js * remove i18n from next.config.js * Fixed tests * Fixed types * Removed duplicate favicon.ico * Fixing more types * ImageResponse moved to next/og * Fixed prisma import issues * dynamic import for @ewsjs/xhr * remove deasync dep * dynamic import for @tryvital/vital-node * fix type checks * add back turbopack command * Type fix * Removed unneeded file * fix turbopack relative path errors * add comments * remove unneeded code * Fixed build errors * await apis * use Promise<Params> type in defaultResponderForAppDir util * refactor scim api route * fix type checks * separate app-routing.config into client-config and server-config * wip * refactor routing forms components * revert unneeded changes for easier review * fix * fix * use CustomTrans * fix type * fix unit tests * fix type error * fix build error * fix build error * fix build error * fix warnings * fix warnings * upgrade @tremor/react and tailwindcss * numCols -> numItems * fix forgot-password e2e test * fix 1 more e2e test * fix login e2e test * fix e2e tests * fix e2e tests * clean up * remove error * use tremor/react 2.11.0 * fix * rename CustomTrans to ServerTrans * address comment * fix test * fix ServerTrans * fix * fix type * fix ServerTrans usages 1 * fix translations * fix type checks * fix type checks * link styling * fix --------- Co-authored-by: Keith Williams <keithwillcode@gmail.com> Co-authored-by: Anik Dhabal Babu <81948346+anikdhabal@users.noreply.github.com>
103 lines
3.0 KiB
TypeScript
103 lines
3.0 KiB
TypeScript
import type { TFunction } from "i18next";
|
|
|
|
import { WEBAPP_URL, COMPANY_NAME } from "@calcom/lib/constants";
|
|
|
|
import { V2BaseEmailHtml } from "../components";
|
|
|
|
interface DailyVideoDownloadTranscriptEmailProps {
|
|
language: TFunction;
|
|
transcriptDownloadLinks: Array<string>;
|
|
title: string;
|
|
date: string;
|
|
name: string;
|
|
}
|
|
|
|
export const DailyVideoDownloadTranscriptEmail = (
|
|
props: DailyVideoDownloadTranscriptEmailProps & Partial<React.ComponentProps<typeof V2BaseEmailHtml>>
|
|
) => {
|
|
const image = `${WEBAPP_URL}/emails/logo.png`;
|
|
return (
|
|
<V2BaseEmailHtml
|
|
subject={props.language("download_transcript_email_subject", {
|
|
title: props.title,
|
|
date: props.date,
|
|
})}>
|
|
<div style={{ width: "89px", marginBottom: "35px" }}>
|
|
<a href={WEBAPP_URL} target="_blank" rel="noreferrer">
|
|
<img
|
|
height="19"
|
|
src={image}
|
|
style={{
|
|
border: "0",
|
|
display: "block",
|
|
outline: "none",
|
|
textDecoration: "none",
|
|
height: "19px",
|
|
width: "100%",
|
|
fontSize: "13px",
|
|
}}
|
|
width="89"
|
|
alt=""
|
|
/>
|
|
</a>
|
|
</div>
|
|
<p
|
|
style={{
|
|
fontSize: "32px",
|
|
fontWeight: "600",
|
|
lineHeight: "38.5px",
|
|
marginBottom: "40px",
|
|
color: "black",
|
|
}}>
|
|
<>{props.language("download_your_transcripts")}</>
|
|
</p>
|
|
<p style={{ fontWeight: 400, lineHeight: "24px" }}>
|
|
<>{props.language("hi_user_name", { name: props.name })},</>
|
|
</p>
|
|
<p style={{ fontWeight: 400, lineHeight: "24px", marginBottom: "40px" }}>
|
|
<>{props.language("you_can_download_transcript_from_attachments")}</>
|
|
</p>
|
|
|
|
{props.transcriptDownloadLinks.map((_, index) => {
|
|
return (
|
|
<div
|
|
key={`transcript-${index}`}
|
|
style={{
|
|
backgroundColor: "#F3F4F6",
|
|
padding: "32px",
|
|
marginBottom: "40px",
|
|
}}>
|
|
<p
|
|
style={{
|
|
fontSize: "18px",
|
|
lineHeight: "20px",
|
|
fontWeight: 600,
|
|
marginBottom: "8px",
|
|
color: "black",
|
|
}}>
|
|
<>{props.title}</>
|
|
</p>
|
|
<p
|
|
style={{
|
|
fontWeight: 400,
|
|
lineHeight: "24px",
|
|
marginBottom: "24px",
|
|
marginTop: "0px",
|
|
color: "black",
|
|
}}>
|
|
{props.date} Transcript {index + 1}
|
|
</p>
|
|
</div>
|
|
);
|
|
})}
|
|
|
|
<p style={{ fontWeight: 400, lineHeight: "24px", marginTop: "32px", marginBottom: "8px" }}>
|
|
<>{props.language("happy_scheduling")},</>
|
|
</p>
|
|
<p style={{ fontWeight: 400, lineHeight: "24px", marginTop: "0px" }}>
|
|
<>{props.language("the_calcom_team", { companyName: COMPANY_NAME })}</>
|
|
</p>
|
|
</V2BaseEmailHtml>
|
|
);
|
|
};
|