| 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 ResetPasswordProps { |
| 11 | name?: string |
| 12 | resetUrl: string; |
| 13 | appUrl: string; |
| 14 | } |
| 15 | |
| 16 | export default function ResetPassword |
| 17 | name = 'there' |
| 18 | resetUrl = 'https://ghost.example/auth/reset-password?token=preview' |
| 19 | appUrl = 'http://localhost:3000' |
| 20 | }: ResetPasswordProps) |
| 21 | return ( |
| 22 | <EmailLayout |
| 23 | appUrl={appUrl} |
| 24 | heading="Reset your password" |
| 25 | preview="Choose a new password for your Ghost account" |
| 26 | > |
| 27 | <Text style={ |
| 28 | Hi <span style={text |
| 29 | the password on your Ghost account. Pick a new one here. |
| 30 | </Text> |
| 31 | <ActionButton href={ |
| 32 | <LinkFallback href={ |
| 33 | <Text style={ |
| 34 | The link works once and expires in 1 hour. If you did not ask for this, |
| 35 | ignore this email - your password stays as it is. |
| 36 | </Text> |
| 37 | </EmailLayout> |
| 38 | ); |
| 39 | } |