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 EmailUpdated({
oldEmail = "[email protected]",
newEmail = "[email protected]",
}: {
oldEmail: string;
newEmail: string;
}) {
return (
<Html>
<Head />
<Preview>Your email address has been updated</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">
Your email address has been changed
</Heading>
<Text className="mx-auto text-sm leading-6">
The e-mail address for your Dub account has been changed from{" "}
<strong>{oldEmail}</strong> to <strong>{newEmail}</strong>.
</Text>
<Text className="text-sm leading-6 text-black">
If you did not make this change, please contact our support team
or{" "}
<Link href="https://app.dub.co/account/settings">
update your email address
</Link>
.
</Text>
<Text className="text-sm leading-6 text-black">
This message is being sent to your old e-mail address only.
</Text>
<Footer email={oldEmail} />
</Container>
</Body>
</Tailwind>
</Html>
);
}