import { Heading } from '@react-email/heading'; import { Text } from '@react-email/text'; import { Button } from '../components/Button'; import { EmailContainer } from '../components/EmailContainer'; import { THEME_COLORS } from '../theme'; import type { EmailBaseProps } from '../types'; export type TeamInviteOutsideDomainEmailTemplateProps = { mode: EmailBaseProps['mode']; tenant: EmailBaseProps['tenant']; invitedEmail: string; invitedBy: string | null; invitedAt: string; roles: string; href: string; }; export const TeamInviteOutsideDomainEmailTemplate = ({ mode, tenant, invitedEmail, invitedBy, invitedAt, roles, href, }: TeamInviteOutsideDomainEmailTemplateProps) => ( A new member was invited {invitedBy ?? 'An API key'} invited {invitedEmail} to {tenant.name}{' '} as {roles} on {invitedAt}. The address is outside the email domains of your team and your accounting partner, or it is a free-mail address. If you do not know this person, remove the member and check who invited them.