import { Body, Container, Head, Heading, Html, Preview, Section, Text, Tailwind } from "@react-email/components"; import * as React from "react"; import LetterHead from "./components/LetterHead"; 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 Password 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:
{otp}
Best regards,
Fossorial
); }; export default ResourceOTPCode;