import React from "react"; import { Body, Head, Html, Preview, Tailwind } from "@react-email/components"; import { themeColors } from "./lib/theme"; import { EmailContainer, EmailFooter, EmailGreeting, EmailHeading, EmailLetterHead, EmailSection, EmailSignature, EmailText } from "./components/Email"; import CopyCodeBox from "./components/CopyCodeBox"; import ButtonLink from "./components/ButtonLink"; interface Props { email: string; code: string; link: string; } export const ResetPasswordCode = ({ email, code, link }: Props) => { const previewText = `Reset your password with code: ${code}`; return ( {previewText} {/* Reset Your Password */} Hi there, You've requested to reset your password. Click the button below to reset your password, or use the verification code provided if prompted. Reset Password This reset code will expire in 2 hours. If you didn't request a password reset, you can safely ignore this email. ); }; export default ResetPasswordCode;