mirror of
https://github.com/fastapi/full-stack-fastapi-template.git
synced 2026-09-29 16:15:55 +00:00
36 lines
1.0 KiB
TypeScript
36 lines
1.0 KiB
TypeScript
import { Text } from "@react-email/components"
|
|
import { Callout, Detail } from "../ui/Callout"
|
|
import { Heading } from "../ui/Heading"
|
|
import { Layout } from "../ui/Layout"
|
|
|
|
type TestEmailProps = {
|
|
project_name: string
|
|
email: string
|
|
}
|
|
|
|
export default function TestEmail({
|
|
project_name = "{{ project_name }}",
|
|
email = "{{ email }}",
|
|
}: TestEmailProps) {
|
|
return (
|
|
<Layout
|
|
title={`${project_name} - Test email`}
|
|
preview={`${project_name} email delivery is working`}
|
|
project_name={project_name}
|
|
>
|
|
<Heading>Test email</Heading>
|
|
<Text className="text-[15px] leading-7 text-body">Hi,</Text>
|
|
<Text className="text-[15px] leading-7 text-body">
|
|
This is a test email from {project_name}. If you're reading it, email
|
|
delivery is configured correctly.
|
|
</Text>
|
|
<Callout>
|
|
<Detail label="Sent to" value={email} />
|
|
</Callout>
|
|
<Text className="text-sm leading-6 text-muted">
|
|
If you weren't expecting this email, you can safely ignore it.
|
|
</Text>
|
|
</Layout>
|
|
)
|
|
}
|