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