| 1 | import { Text } from '@react-email/components'; |
| 2 | |
| 3 | import { text } |
| 4 | import { |
| 5 | kindOf, |
| 6 | previewThread, |
| 7 | Quote, |
| 8 | ThreadEmail, |
| 9 | type ThreadProps, |
| 10 | } from '../components/thread.js'; |
| 11 | |
| 12 | interface ThreadOpenedProps extends |
| 13 | body: string |
| 14 | } |
| 15 | |
| 16 | export default function ThreadOpened |
| 17 | return ( |
| 18 | <ThreadEmail |
| 19 | thread={thread} |
| 20 | preview={`${thread |
| 21 | > |
| 22 | <Text style={ |
| 23 | <span style={text |
| 24 | {kindOf(thread)} |
| 25 | </Text> |
| 26 | {body && <Quote |
| 27 | </ThreadEmail> |
| 28 | ); |
| 29 | } |
| 30 | |
| 31 | ThreadOpened.PreviewProps = { |
| 32 | ...previewThread, |
| 33 | reason: 'watching', |
| 34 | body: 'The bell should show how many unread notifications are waiting, and link to the inbox.', |
| 35 | } satisfies ThreadOpenedProps; |