import { msg } from '@lingui/core/macro'; import { useLingui } from '@lingui/react'; import { Body, Container, Head, Html, Img, Preview, Section } from '../components'; import { useBranding } from '../providers/branding'; import { TemplateFooter } from '../template-components/template-footer'; import type { TemplateForgotPasswordProps } from '../template-components/template-forgot-password'; import { TemplateForgotPassword } from '../template-components/template-forgot-password'; export type ForgotPasswordTemplateProps = Partial; export const ForgotPasswordTemplate = ({ resetPasswordLink = 'https://documenso.com', assetBaseUrl = 'http://localhost:3002', }: ForgotPasswordTemplateProps) => { const { _ } = useLingui(); const branding = useBranding(); const previewText = msg`Password Reset Requested`; const getAssetUrl = (path: string) => { return new URL(path, assetBaseUrl).toString(); }; return ( {_(previewText)}
{branding.brandingEnabled && branding.brandingLogo ? ( Branding Logo ) : ( Documenso Logo )}
); }; export default ForgotPasswordTemplate;