| 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 InvoiceDisputedEmailProps { |
| 13 | currency: string |
| 14 | disputedByName: string |
| 15 | invoiceId: string |
| 16 | invoiceNumber: string |
| 17 | orgSlug: string |
| 18 | projectName: string |
| 19 | projectSlug: string |
| 20 | recipientName: string |
| 21 | totalAmount: string |
| 22 | } |
| 23 | |
| 24 | export default function InvoiceDisputedEmail |
| 25 | invoiceNumber = 'INV-2026-001' |
| 26 | projectName = 'Website Redesign' |
| 27 | disputedByName = 'Jane Smith' |
| 28 | totalAmount = '2,500.00' |
| 29 | currency = 'USD' |
| 30 | orgSlug = 'acme' |
| 31 | projectSlug = 'website-redesign' |
| 32 | invoiceId = 'inv_abc123' |
| 33 | }: InvoiceDisputedEmailProps) |
| 34 | return ( |
| 35 | <EmailLayout |
| 36 | accentColor='#ef4444' |
| 37 | heading='Invoice needs attention' |
| 38 | preview={`${disputedByName |
| 39 | > |
| 40 | <Text style={ |
| 41 | <span style={text |
| 42 | on invoice <span style={text |
| 43 | {projectName}. |
| 44 | </Text> |
| 45 | <InfoCard> |
| 46 | <InfoRow label=' |
| 47 | <InfoRow label=' |
| 48 | </InfoCard> |
| 49 | <Text style={ |
| 50 | Check the invoice thread to address any questions and resolve the |
| 51 | dispute. |
| 52 | </Text> |
| 53 | <ActionButton |
| 54 | color='#ef4444' |
| 55 | href={`${baseUrl |
| 56 | > |
| 57 | View Discussion |
| 58 | </ActionButton> |
| 59 | </EmailLayout> |
| 60 | ) |
| 61 | } |