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