| 1 | import { Text } from '@react-email/components' |
| 2 | import { env } |
| 3 | import { |
| 4 | ActionButton, |
| 5 | EmailLayout, |
| 6 | InfoCard, |
| 7 | InfoRow, |
| 8 | text, |
| 9 | } from '../components/layout' |
| 10 | |
| 11 | const baseUrl = env |
| 12 | |
| 13 | interface TeamAssignedToProjectEmailProps { |
| 14 | assignedByName: string |
| 15 | organizationName: string |
| 16 | orgSlug: string |
| 17 | projectName: string |
| 18 | projectSlug: string |
| 19 | recipientName: string |
| 20 | teamName: string |
| 21 | } |
| 22 | |
| 23 | export default function TeamAssignedToProjectEmail |
| 24 | recipientName = 'Jane Smith' |
| 25 | teamName = 'Design Team' |
| 26 | projectName = 'Website Redesign' |
| 27 | organizationName = 'Acme Studio' |
| 28 | assignedByName = 'John Doe' |
| 29 | orgSlug = 'acme' |
| 30 | projectSlug = 'website-redesign' |
| 31 | }: TeamAssignedToProjectEmailProps) |
| 32 | return ( |
| 33 | <EmailLayout |
| 34 | heading="Your team's on a new project" |
| 35 | preview={`Your team "${teamName |
| 36 | > |
| 37 | <Text style={ |
| 38 | Hi {recipientName}, <span |
| 39 | assigned your team <span style={text |
| 40 | <span style={text |
| 41 | </Text> |
| 42 | <InfoCard> |
| 43 | <InfoRow label=' |
| 44 | <InfoRow label=' |
| 45 | </InfoCard> |
| 46 | <ActionButton href={ |
| 47 | Open Project |
| 48 | </ActionButton> |
| 49 | </EmailLayout> |
| 50 | ) |
| 51 | } |