Files
newsletter-hackernews/components/emails/confirmation.tsx
2023-12-18 18:17:50 +01:00

34 lines
993 B
TypeScript

import { Link } from '../custom/link';
import { Note } from './components/note';
import Email from './template';
export default function ConfirmationTemplate(code: string) {
return {
subject: 'Welcome!',
template: (
<Email
title={'Welcome!'}
body={
<div className='text-base text-gray-700 dark:text-gray-400'>
<p>Dear subscriber,</p>
<p className='mt-2 '>
thank you for subscribing to our newsletter! Please click the
button below to confirm your subscription.
</p>
<div className='my-8 flex justify-center'>
<Link
path={`${process.env.HOME_URL}/confirmation?code=${code}`}
text='Confirm Subscription'
/>
</div>
<Note>
If you didn&apos;t subscribe to our newsletter, please ignore this
email.
</Note>
</div>
}
/>
)
};
}