| 1 | import { Text } from '@react-email/components' |
| 2 | import { env } |
| 3 | import { |
| 4 | ActionButton, |
| 5 | EmailLayout, |
| 6 | QuoteBlock, |
| 7 | text, |
| 8 | } from '../components/layout' |
| 9 | |
| 10 | const baseUrl = env |
| 11 | |
| 12 | interface RequirementChangeRequestedEmailProps { |
| 13 | description: string |
| 14 | orgSlug: string |
| 15 | projectName: string |
| 16 | projectSlug: string |
| 17 | recipientName: string |
| 18 | requesterName: string |
| 19 | requirementId: string |
| 20 | requirementTitle: string |
| 21 | } |
| 22 | |
| 23 | export default function RequirementChangeRequestedEmail |
| 24 | requirementTitle = 'Homepage Specifications v2' |
| 25 | projectName = 'Website Redesign' |
| 26 | requesterName = 'Jane Smith' |
| 27 | description = 'The hero section copy needs to be updated to match the new brand guidelines we discussed last week. Also, the mobile breakpoints section is missing the tablet layout specs.' |
| 28 | orgSlug = 'acme' |
| 29 | projectSlug = 'website-redesign' |
| 30 | requirementId = 'req_abc123' |
| 31 | }: RequirementChangeRequestedEmailProps) |
| 32 | return ( |
| 33 | <EmailLayout |
| 34 | accentColor='#f59e0b' |
| 35 | heading='Changes requested' |
| 36 | preview={`${requesterName |
| 37 | > |
| 38 | <Text style={ |
| 39 | <span style={text |
| 40 | <span style={text |
| 41 | and is requesting changes before signing off. |
| 42 | </Text> |
| 43 | <QuoteBlock borderColor=' |
| 44 | <Text |
| 45 | style={{ |
| 46 | fontSize: '14px', |
| 47 | color: '#3f3f46', |
| 48 | lineHeight: '22px', |
| 49 | margin: '0', |
| 50 | fontStyle: 'italic', |
| 51 | }} |
| 52 | > |
| 53 | "{description}" |
| 54 | </Text> |
| 55 | </QuoteBlock> |
| 56 | <ActionButton |
| 57 | color='#f59e0b' |
| 58 | href={`${baseUrl |
| 59 | > |
| 60 | View Change Request |
| 61 | </ActionButton> |
| 62 | </EmailLayout> |
| 63 | ) |
| 64 | } |