✨ Add react-email for email templates (#2421)

This commit is contained in:
Alejandra
2026-08-10 19:59:35 +02:00
committed by GitHub
parent de53c8fd35
commit b0ccf1e80e
26 changed files with 802 additions and 166 deletions
+22
View File
@@ -0,0 +1,22 @@
import { Section, Text } from "@react-email/components"
type CalloutProps = React.PropsWithChildren
export const Callout = ({ children }: CalloutProps) => (
<Section className="border-0 border-l-2 border-solid border-brand pl-5 my-7">
{children}
</Section>
)
type DetailProps = { label: string; value: string }
export const Detail = ({ label, value }: DetailProps) => (
<Text className="m-0 my-3">
<span className="block text-[11px] uppercase tracking-[0.08em] text-muted">
{label}
</span>
<span className="block text-sm font-semibold break-all font-mono mt-1">
{value}
</span>
</Text>
)