Files
twenty/packages/twenty-emails/src/emails/password-reset-link.email.tsx
Thaïs a654205dbc chore: set up twenty-emails config so build isn't needed in development (#3619)
* chore: set up twenty-emails config so build isn't needed in development

* fix: fix script dependency

* chore: use @vitejs/plugin-react-swc

* Remove useless dependancy

* Fix typing

* chore: use baseUrl in twenty-emails

* chore: fix docker server prod build

* refactor: optimize Docker file and tsconfig

* fix: fix WORKDIR in docker

---------

Co-authored-by: martmull <martmull@hotmail.fr>
2024-01-29 06:17:12 -03:00

29 lines
812 B
TypeScript

import { BaseEmail } from 'src/components/BaseEmail';
import { CallToAction } from 'src/components/CallToAction';
import { Link } from 'src/components/Link';
import { MainText } from 'src/components/MainText';
import { Title } from 'src/components/Title';
type PasswordResetLinkEmailProps = {
duration: string;
link: string;
};
export const PasswordResetLinkEmail = ({
duration,
link,
}: PasswordResetLinkEmailProps) => {
return (
<BaseEmail>
<Title value="Reset your password 🗝" />
<CallToAction href={link} value="Reset" />
<MainText>
This link is only valid for the next {duration}. If link does not work,
you can use the login verification link directly:
<br />
<Link href={link} value={link} />
</MainText>
</BaseEmail>
);
};