import React from "react"; import { Body, Head, Html, Preview, Tailwind } from "@react-email/components"; import { themeColors } from "./lib/theme"; import { EmailContainer, EmailFooter, EmailGreeting, EmailInfoSection, EmailLetterHead, EmailSection, EmailSignature, EmailText } from "./components/Email"; type VirtualApiKeyGeneratedProps = { orgName: string; keyName: string | null; credential: string; resourceUrls: string[]; hasMoreResources: boolean; }; export const VirtualApiKeyGenerated = ({ orgName, keyName, credential, resourceUrls, hasMoreResources }: VirtualApiKeyGeneratedProps) => { const previewText = `A virtual API key for ${orgName} has been shared with you`; return ( {previewText} Hi there, A virtual API key for {orgName} has been shared with you. This key grants access to the public AI gateways it was created for. Treat this key like a password and do not share it. Your virtual API key:
{credential}
{resourceUrls.length > 0 && ( <> This key can be used to authenticate to the following AI gateway resources:
{resourceUrls.map((url) => (

{url}

))}
{hasMoreResources && ( Contact your administrator to get the full list. )} )}
); }; export default VirtualApiKeyGenerated;