import { Body, Container, Head, Heading, Html, Preview, Section, Text, Tailwind } from "@react-email/components"; import * as React from "react"; interface Props { email: string; enabled: boolean; } export const TwoFactorAuthNotification = ({ email, enabled }: Props) => { const previewText = `Two-Factor Authentication has been ${enabled ? "enabled" : "disabled"}`; return ( {previewText} Two-Factor Authentication{" "} {enabled ? "Enabled" : "Disabled"} Hi {email || "there"}, This email confirms that Two-Factor Authentication has been successfully{" "} {enabled ? "enabled" : "disabled"} on your account.
{enabled ? ( With Two-Factor Authentication enabled, your account is now more secure. Please ensure you keep your authentication method safe. ) : ( With Two-Factor Authentication disabled, your account may be less secure. We recommend enabling it to protect your account. )}
If you did not make this change, please contact our support team immediately. Best regards,
Fossorial
); }; export default TwoFactorAuthNotification;