import { Body, Button, Column, Container, Head, Heading, Hr, Html, Img, Link, Preview, Row, Section, Tailwind, Text, render, } from '@react-email/components'; interface Props { teamName: string; teamLogo?: string; inviter: string | undefined; invitedUserEmail: string; link: string; productName: string; } export function renderInviteEmail(props: Props) { const previewText = `Join ${props.invitedUserEmail} on ${props.productName}`; return render( {previewText} Join {props.teamName} on{' '} {props.productName} Hello {props.invitedUserEmail}, {props.inviter} has invited you to the{' '} {props.teamName} team on{' '} {props.productName}. {props.teamLogo && (
)}
or copy and paste this URL into your browser:{' '} {props.link}
This invitation was intended for{' '} {props.invitedUserEmail}.
, ); }