import { Link, Text } from '@react-email/components' import { baseStyles } from '@/components/emails/_styles' import { EmailLayout } from '@/components/emails/components' import { getBrandConfig } from '@/ee/whitelabeling' interface WorkspaceAddedEmailProps { /** Name of the workspace the recipient was added to. */ workspaceName?: string /** Name of the person who added the recipient. */ inviterName?: string /** Direct link to the workspace (no acceptance required). */ workspaceLink?: string } export function WorkspaceAddedEmail({ workspaceName = 'Workspace', inviterName = 'Someone', workspaceLink = '', }: WorkspaceAddedEmailProps) { const brand = getBrandConfig() const preview = `You've been added to the "${workspaceName}" workspace on ${brand.name}` return ( Hello, {inviterName} added you to the {workspaceName} workspace on {brand.name}. Open workspace
If this was unexpected, contact a workspace admin. ) } export default WorkspaceAddedEmail