Skip to content

armgit / Cap

Public Imported from GitHub
0

Open source Loom alternative. Beautiful, shareable screen recordings.

feat(email): add Signed BAA confirmation email template

Richie McIlroy1ee1d50d6ef2
diff --git a/packages/database/emails/signed-baa.tsx b/packages/database/emails/signed-baa.tsx
new file mode 100644
index 000000000..73db618f0
--- /dev/null
+++ b/packages/database/emails/signed-baa.tsx
@@ -0,0 +1,67 @@
+import { CAP_LOGO_URL } from "@cap/utils";
+import {
+ Body,
+ Container,
+ Head,
+ Heading,
+ Html,
+ Img,
+ Preview,
+ Section,
+ Tailwind,
+ Text,
+} from "@react-email/components";
+import Footer from "./components/Footer";
+
+export function SignedBaa({
+ email = "",
+ entityName = "",
+ effectiveDate = "",
+}: {
+ email: string;
+ entityName: string;
+ effectiveDate: string;
+}) {
+ return (
+ <Html>
+ <Head />
+ <Preview>
+ Your Business Associate Agreement with Cap is signed and active
+ </Preview>
+ <Tailwind>
+ <Body className="mx-auto my-auto bg-gray-1 font-sans">
+ <Container className="mx-auto my-10 max-w-[500px] rounded border border-solid border-gray-200 px-10 py-5">
+ <Section className="mt-8">
+ <Img
+ src={CAP_LOGO_URL}
+ width="40"
+ height="40"
+ alt="Cap"
+ className="mx-auto my-0"
+ />
+ </Section>
+ <Heading className="mx-0 my-7 p-0 text-center text-xl font-semibold text-black">
+ Your signed BAA is attached
+ </Heading>
+ <Text className="text-sm leading-6 text-black">
+ The Business Associate Agreement between {entityName} and Cap
+ Software, Inc. has been executed, effective {effectiveDate}. A
+ fully signed copy is attached to this email as a PDF for your
+ records.
+ </Text>
+ <Text className="text-sm leading-6 text-black">
+ The Signed BAA add-on is now active on your organization and bills
+ at $99/month. You can download the signed agreement at any time
+ from your organization's billing settings.
+ </Text>
+ <Text className="text-sm leading-6 text-black">
+ If anything looks wrong, just reply to this email and we'll sort
+ it out.
+ </Text>
+ <Footer email={email} />
+ </Container>
+ </Body>
+ </Tailwind>
+ </Html>
+ );
+}