| 1 | import { Text } from '@react-email/components'; |
| 2 | |
| 3 | import { |
| 4 | ActionButton, |
| 5 | EmailLayout, |
| 6 | LinkFallback, |
| 7 | text, |
| 8 | } from '../components/layout.js'; |
| 9 | |
| 10 | interface VerifyAliasProps { |
| 11 | name?: string |
| 12 | verifyUrl: string; |
| 13 | appUrl: string; |
| 14 | } |
| 15 | |
| 16 | export default function VerifyAlias |
| 17 | name = 'there' |
| 18 | verifyUrl = 'https://ghost.example/api/emails/verify?token=preview' |
| 19 | appUrl = 'http://localhost:3000' |
| 20 | }: VerifyAliasProps) |
| 21 | return ( |
| 22 | <EmailLayout |
| 23 | appUrl={appUrl} |
| 24 | heading="Add this address to your account" |
| 25 | preview="Confirm this address so Ghost can recognise your commits from it" |
| 26 | > |
| 27 | <Text style={ |
| 28 | Hi <span style={text |
| 29 | your Ghost account. Confirm it and you can sign in with it, and commits |
| 30 | you push from it count as yours. |
| 31 | </Text> |
| 32 | <ActionButton href={ |
| 33 | <LinkFallback href={ |
| 34 | <Text style={ |
| 35 | The link works once and expires in 1 hour. If this was not you, ignore |
| 36 | this email — the address stays unverified and unused. |
| 37 | </Text> |
| 38 | </EmailLayout> |
| 39 | ); |
| 40 | } |