import { Body, Head, Html, Preview, Tailwind } from "@react-email/components"; import * as React from "react"; import { EmailContainer, EmailLetterHead, EmailHeading, EmailText, EmailFooter, EmailSection, EmailGreeting, EmailSignature } from "./components/Email"; import { themeColors } from "./lib/theme"; import CopyCodeBox from "./components/CopyCodeBox"; interface ResourceOTPCodeProps { email?: string; resourceName: string; orgName: string; otp: string; } export const ResourceOTPCode = ({ email, resourceName, orgName: organizationName, otp }: ResourceOTPCodeProps) => { const previewText = `Your one-time password for ${resourceName} is ${otp}`; return ( {previewText} Your One-Time Code for {resourceName} Hi {email || "there"}, You’ve requested a one-time password to access{" "} {resourceName} in{" "} {organizationName}. Use the code below to complete your authentication: ); }; export default ResourceOTPCode;