Papermark is the open-source DocSend alternative and secure data rooms with built-in analytics and custom domains.
import React from "react";
import {
Body,
Container,
Head,
Heading,
Html,
Link,
Section,
Tailwind,
Text,
} from "react-email";
import { Footer } from "./shared/footer";
interface ConfirmEmailChangeProps {
email: string;
newEmail: string;
confirmUrl: string;
}
export function ConfirmEmailChange({
email = "[email protected]",
newEmail = "[email protected]",
confirmUrl = "https://www.papermark.com",
}: ConfirmEmailChangeProps) {
return (
<Html>
<Head />
<Tailwind>
<Body className="mx-auto my-auto bg-white font-sans">
<Container className="mx-auto my-10 max-w-[500px] rounded border border-solid border-gray-200 px-10 py-5">
<Section>
<Text className="mx-0 mb-8 mt-4 p-0 text-center text-2xl font-normal">
<span className="font-bold tracking-tighter">Papermark</span>
</Text>
<Heading className="mx-0 my-7 p-0 text-center text-xl font-semibold text-black">
Confirm your email address change
</Heading>
</Section>
<Text className="text-sm leading-6 text-black">
An email address change was requested for Papermark. Follow the
link below to confirm the update from <strong>{email}</strong> to{" "}
<strong>{newEmail}</strong>.
</Text>
<Section className="my-8 text-center">
<Link
href={confirmUrl}
className="rounded bg-black text-center text-xs font-semibold text-white no-underline"
style={{ padding: "12px 20px" }}
>
Confirm email change
</Link>
</Section>
<Text className="text-sm leading-6 text-black">
or copy and paste this URL into your browser:
</Text>
<Text className="max-w-sm flex-wrap break-words font-medium text-purple-600 no-underline">
{confirmUrl.replace(/^https?:\/\//, "")}
</Text>
<Footer
footerText={
<>
This email was intended for{" "}
<span className="text-black">{email}</span>. If you were not
expecting this email, you can ignore this email. If you have
any feedback or questions about this email, simply reply to
it.
</>
}
/>
</Container>
</Body>
</Tailwind>
</Html>
);
}
export default ConfirmEmailChange;