import { Section, Text, Heading, Hr } from "@react-email/components"; import { EmailLayout } from "../../components/EmailLayout"; import { Button } from "../../components/Button"; import { useBrandingConfig } from "../../hooks/useBrandingConfig"; interface PasswordResetEmailProps { playerName?: string; resetLink?: string; resetCode?: string; expirationTime?: number; // in minutes ipAddress?: string; supportEmail?: string; } export const PasswordResetEmail = ({ playerName = "John", resetLink = "https://example.com/reset-password?token=abc123", resetCode, expirationTime = 30, ipAddress, supportEmail, }: PasswordResetEmailProps) => { const config = useBrandingConfig(); return (
Hi {playerName}, We received a request to reset your password for your {config.companyName} account. If you made this request, click the button below to reset your password.
{resetCode && (
Or enter this reset code: {resetCode}
)}
⏰ Important: This password reset link will expire in {expirationTime} minutes for security purposes.
If the button doesn't work, copy and paste this link into your browser: {resetLink}
🔒 Security Notice: If you didn't request a password reset, please ignore this email. Your password will remain unchanged. {ipAddress && ( Request originated from: {ipAddress} )}
{supportEmail && ( If you have concerns about your account security, please contact us immediately at{" "} {supportEmail} )}
); };