The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
import { DUB_WORDMARK } from "@dub/utils";
import {
Body,
Container,
Head,
Heading,
Html,
Img,
Link,
Preview,
Section,
Tailwind,
Text,
} from "@react-email/components";
import { Footer } from "../components/footer";
export default function ConfirmEmailChange({
email = "[email protected]",
newEmail = "[email protected]",
confirmUrl = "https://dub.co/auth/confirm-email-change/d03324452e1ac9352954315f3ffc",
}: {
email: string;
newEmail: string;
confirmUrl: string;
}) {
return (
<Html>
<Head />
<Preview>Confirm your email address change</Preview>
<Tailwind>
<Body className="mx-auto my-auto bg-white font-sans">
<Container className="mx-auto my-10 max-w-[600px] rounded border border-solid border-neutral-200 px-10 py-5">
<Section className="mt-8">
<Img src={DUB_WORDMARK} height="32" alt="Dub" />
</Section>
<Heading className="mx-0 my-7 p-0 text-lg font-medium text-black">
Confirm your email address change
</Heading>
<Text className="mx-auto text-sm leading-6">
Follow this link to confirm the update to your email from{" "}
<strong>{email}</strong> to <strong>{newEmail}</strong>.
</Text>
<Section className="my-8">
<Link
href={confirmUrl}
className="rounded-lg bg-black px-6 py-3 text-center text-[12px] font-semibold text-white no-underline"
>
<strong>Confirm email change</strong>
</Link>
</Section>
<Text className="text-sm leading-6 text-black">
If you did not request this change, this email can be safely
ignored or{" "}
<Link href={`${confirmUrl}?cancel=true`}>
cancel this request
</Link>
.
</Text>
<Footer email={newEmail} />
</Container>
</Body>
</Tailwind>
</Html>
);
}