| 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 ProposalChangesRequestedEmailProps { |
| 13 | description: string |
| 14 | orgSlug: string |
| 15 | proposalSlug: string |
| 16 | proposalTitle: string |
| 17 | recipientName: string |
| 18 | requesterName: string |
| 19 | } |
| 20 | |
| 21 | export default function ProposalChangesRequestedEmail |
| 22 | proposalTitle = 'E-Commerce Platform Rebuild' |
| 23 | requesterName = 'Jane Smith' |
| 24 | description = 'The milestone pricing for phase 2 seems higher than we discussed. Can we revisit the scope breakdown for the payment integration module?' |
| 25 | orgSlug = 'acme' |
| 26 | proposalSlug = 'ecommerce-rebuild' |
| 27 | }: ProposalChangesRequestedEmailProps) |
| 28 | return ( |
| 29 | <EmailLayout |
| 30 | accentColor='#f59e0b' |
| 31 | heading='Changes requested on proposal' |
| 32 | preview={`${requesterName |
| 33 | > |
| 34 | <Text style={ |
| 35 | <span style={text |
| 36 | <span style={text |
| 37 | changes before approving. |
| 38 | </Text> |
| 39 | <QuoteBlock borderColor=' |
| 40 | <Text |
| 41 | style={{ |
| 42 | fontSize: '14px', |
| 43 | color: '#3f3f46', |
| 44 | lineHeight: '22px', |
| 45 | margin: '0', |
| 46 | fontStyle: 'italic', |
| 47 | }} |
| 48 | > |
| 49 | "{description}" |
| 50 | </Text> |
| 51 | </QuoteBlock> |
| 52 | <ActionButton |
| 53 | color='#f59e0b' |
| 54 | href={`${baseUrl |
| 55 | > |
| 56 | View Change Request |
| 57 | </ActionButton> |
| 58 | </EmailLayout> |
| 59 | ) |
| 60 | } |