import { Link, Text } from "@react-email/components"; import React from "react"; import { createTranslator } from "use-intl/core"; import PrimaryButton from "../src/components/PrimaryButton"; import Wrapper from "../src/components/Wrapper"; import { defaultLocale } from "../src/util/translations"; import { defaultTranslations } from "../src/util/translations"; import type { BaseMailProps } from "../types"; export function ForgotPassword({ url, locale, translations, }: { url: string; name: string; } & BaseMailProps) { const t = createTranslator({ locale, messages: translations, }); return ( {t("mail.forgotPassword.body")} {t("mail.forgotPassword.resetPassword")} → {t("mail.common.openLinkInBrowser")} {url} ); } ForgotPassword.PreviewProps = { locale: defaultLocale, translations: defaultTranslations, url: "#", name: "John Doe", }; export default ForgotPassword;