| 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 RequirementSentForSignEmailProps { |
| 14 | orgSlug: string |
| 15 | projectName: string |
| 16 | projectSlug: string |
| 17 | recipientName: string |
| 18 | requirementId: string |
| 19 | requirementTitle: string |
| 20 | senderName: string |
| 21 | } |
| 22 | |
| 23 | export default function RequirementSentForSignEmail |
| 24 | recipientName = 'Jane Smith' |
| 25 | requirementTitle = 'Homepage Specifications v2' |
| 26 | projectName = 'Website Redesign' |
| 27 | senderName = 'John Doe' |
| 28 | orgSlug = 'acme' |
| 29 | projectSlug = 'website-redesign' |
| 30 | requirementId = 'req_abc123' |
| 31 | }: RequirementSentForSignEmailProps) |
| 32 | return ( |
| 33 | <EmailLayout |
| 34 | accentColor='#7c3aed' |
| 35 | heading='Requirement awaiting your sign-off' |
| 36 | preview={`Action needed: Sign "${requirementTitle |
| 37 | > |
| 38 | <Text style={ |
| 39 | Hi {recipientName}, <span |
| 40 | you a requirement to review and sign for{' '} |
| 41 | <span style={text |
| 42 | </Text> |
| 43 | <InfoCard> |
| 44 | <InfoRow label=' |
| 45 | <InfoRow label=' |
| 46 | </InfoCard> |
| 47 | <Text style={ |
| 48 | You can sign the requirement or highlight specific text to start a |
| 49 | discussion thread. |
| 50 | </Text> |
| 51 | <ActionButton |
| 52 | href={`${baseUrl |
| 53 | > |
| 54 | Review & Sign |
| 55 | </ActionButton> |
| 56 | </EmailLayout> |
| 57 | ) |
| 58 | } |