import React from "react"; import { Body, Head, Html, Preview, Tailwind } from "@react-email/components"; 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 access code for ${resourceName}: ${otp}`; return ( {previewText} {/* */} {/* Access Code for {resourceName} */} {/* */} Hi there, You've requested access to{" "} {resourceName} in{" "} {organizationName}. Use the verification code below to complete your authentication. This code will expire in 15 minutes. If you didn't request this code, please ignore this email. ); }; export default ResourceOTPCode;