2025-08-04 17:45:44 +02:00
|
|
|
import { Button, Heading, Row, Section, Text } from "@react-email/components";
|
|
|
|
|
import Base from "./base";
|
|
|
|
|
export type VerificaEmail_NewMail = {
|
2025-08-29 16:18:32 +02:00
|
|
|
mailType: "verificaEmail";
|
|
|
|
|
props: VerificaEmailProps;
|
2025-08-04 17:45:44 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
type VerificaEmailProps = {
|
2025-08-29 16:18:32 +02:00
|
|
|
token: string;
|
|
|
|
|
userId: string;
|
|
|
|
|
redirect?: string;
|
2025-08-04 17:45:44 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
const VerificaEmail = ({ token, userId, redirect }: VerificaEmailProps) => {
|
2025-08-29 16:18:32 +02:00
|
|
|
return (
|
|
|
|
|
<Base noreply preview="Verifica la tua email">
|
|
|
|
|
<>
|
|
|
|
|
<Heading className="text-center text-3xl leading-8">
|
|
|
|
|
Verifica la tua email
|
|
|
|
|
</Heading>
|
|
|
|
|
<Section className="px-4 text-center text-base md:px-12">
|
|
|
|
|
<Row>
|
|
|
|
|
<Text>
|
|
|
|
|
Clicca sul pulsante qui sotto per verificare la tua email.
|
|
|
|
|
</Text>
|
|
|
|
|
</Row>
|
2025-08-04 17:45:44 +02:00
|
|
|
|
2025-08-29 16:18:32 +02:00
|
|
|
<Button
|
2025-10-10 16:18:43 +02:00
|
|
|
className="mx-auto box-border inline-flex h-10 items-center justify-center whitespace-nowrap rounded-md bg-neutral-100 px-4 py-2 text-center align-middle font-semibold text-neutral-900"
|
2025-08-29 16:18:32 +02:00
|
|
|
href={`${process.env.NEXT_PUBLIC_BASE_URL}/auth/verifica-email-action?t=${token}&u=${userId}${redirect ? `&r=${redirect}` : ""}`}
|
|
|
|
|
>
|
|
|
|
|
Clicca qui per verificare
|
|
|
|
|
</Button>
|
|
|
|
|
</Section>
|
|
|
|
|
</>
|
|
|
|
|
</Base>
|
|
|
|
|
);
|
2025-08-04 17:45:44 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
export default VerificaEmail;
|