Files
probo/packages/emails/src/MailingListUpdates.tsx
Sacha Al Himdani 85ec106cd6 Send mailing list emails
Signed-off-by: Sacha Al Himdani <sacha@getprobo.com>
2026-03-11 15:34:37 +01:00

49 lines
1.4 KiB
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
import { Button, Hr, Link, Section, Text } from "@react-email/components";
import * as React from "react";
import EmailLayout, {
bodyText,
button,
buttonContainer,
footerText,
} from "./components/EmailLayout";
export const MailingListUpdates = () => {
return (
<EmailLayout
subject={`${"{{.OrganizationName}}"} – ${"{{.NewsTitle}}"}`}
>
<Text style={bodyText}>
{"{{.OrganizationName}}"} has published a new compliance update.
</Text>
<Text style={{ ...bodyText, fontWeight: "600", fontSize: "18px" }}>
{"{{.NewsTitle}}"}
</Text>
<Text style={bodyText}>{"{{.NewsBody}}"}</Text>
<Section style={buttonContainer}>
<Button style={button} href={"{{.CompliancePageURL}}"}>
View Compliance Page
</Button>
</Section>
<Hr style={{ borderColor: "#ecefec", margin: "8px 0 20px" }} />
<Text style={{ ...footerText, textAlign: "center" }}>
You are receiving this email because you subscribed to compliance
updates from <strong>{"{{.OrganizationName}}"}</strong>. To
unsubscribe,{" "}
<Link
href={"{{.UnsubscribeURL}}"}
style={{ color: "#374151", textDecoration: "underline", fontWeight: "500" }}
>
click here.
</Link>
</Text>
</EmailLayout>
);
};
export default MailingListUpdates;