import { Body, Container, Head, Heading, Html, Preview, Section, Text, Tailwind } from "@react-email/components"; import * as React from "react"; 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 ready!`; return ( {previewText} Your One-Time Password Hi {email || "there"}, You’ve requested a one-time password (OTP) to authenticate with the resource{" "} {resourceName} in{" "} {organizationName}. Use the OTP below to complete your authentication:
{otp}
); }; export default ResourceOTPCode;