| 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 ThreadNewMessageEmailProps { |
| 13 | contextName: string |
| 14 | contextType: 'requirement |
| 15 | messagePreview: string |
| 16 | orgSlug: string |
| 17 | projectName: string |
| 18 | projectSlug: string |
| 19 | recipientName: string |
| 20 | senderName: string |
| 21 | threadLink: string |
| 22 | threadTitle: string |
| 23 | } |
| 24 | |
| 25 | export default function ThreadNewMessageEmail |
| 26 | senderName = 'Jane Smith' |
| 27 | threadTitle = 'Hero section copy needs revision' |
| 28 | messagePreview = "I think we should use a more action-oriented headline here. The current one doesn't convey enough urgency for the launch." |
| 29 | contextType = 'requirement' |
| 30 | contextName = 'Homepage Specifications' |
| 31 | projectName = 'Website Redesign' |
| 32 | threadLink = `${baseUrl |
| 33 | }: ThreadNewMessageEmailProps) |
| 34 | return ( |
| 35 | <EmailLayout |
| 36 | heading='New reply in thread' |
| 37 | preview={`${senderName |
| 38 | > |
| 39 | <Text style={ |
| 40 | <span style={text |
| 41 | <span style={text |
| 42 | <span style={text |
| 43 | </Text> |
| 44 | <QuoteBlock borderColor=' |
| 45 | <Text style={ |
| 46 | <Text style={ |
| 47 | </QuoteBlock> |
| 48 | <ActionButton href={ |
| 49 | </EmailLayout> |
| 50 | ) |
| 51 | } |
| 52 | |
| 53 | const senderLabel = { |
| 54 | fontSize: '12px', |
| 55 | fontWeight: '600' as |
| 56 | color: '#7c3aed', |
| 57 | margin: '0 0 4px', |
| 58 | } |
| 59 | |
| 60 | const messageBody = { |
| 61 | fontSize: '14px', |
| 62 | color: '#3f3f46', |
| 63 | lineHeight: '22px', |
| 64 | margin: '0', |
| 65 | } |