| 1 | import { Text } from '@react-email/components' |
| 2 | import { env } |
| 3 | import { ActionButton, EmailLayout |
| 4 | |
| 5 | const baseUrl = env |
| 6 | |
| 7 | interface ForgotPasswordEmailProps { |
| 8 | name?: string |
| 9 | resetUrl: string |
| 10 | } |
| 11 | |
| 12 | export default function ForgotPasswordEmail |
| 13 | name = 'there' |
| 14 | resetUrl = `${baseUrl |
| 15 | }: ForgotPasswordEmailProps) |
| 16 | return ( |
| 17 | <EmailLayout |
| 18 | heading='Reset your password' |
| 19 | preview='Reset your Saturn account password' |
| 20 | > |
| 21 | <Text style={ |
| 22 | Hi <span style={text |
| 23 | reset the password for your Saturn account. Click the button below to |
| 24 | choose a new one. |
| 25 | </Text> |
| 26 | <ActionButton href={ |
| 27 | <Text style={ |
| 28 | This link expires in 1 hour. If you didn't request a password reset, you |
| 29 | can safely ignore this email — your password won't change. |
| 30 | </Text> |
| 31 | </EmailLayout> |
| 32 | ) |
| 33 | } |