mirror of
https://github.com/documenso/documenso.git
synced 2026-06-22 04:12:06 +10:00
56 lines
2.0 KiB
TypeScript
56 lines
2.0 KiB
TypeScript
import { msg } from '@lingui/core/macro';
|
|
import { useLingui } from '@lingui/react';
|
|
|
|
import { Body, Container, Head, Hr, Html, Preview, Section } from '../components';
|
|
import { TemplateBrandingLogo } from '../template-components/template-branding-logo';
|
|
import { TemplateFooter } from '../template-components/template-footer';
|
|
import type { TemplateRecipientExpiredProps } from '../template-components/template-recipient-expired';
|
|
import { TemplateRecipientExpired } from '../template-components/template-recipient-expired';
|
|
|
|
export type RecipientExpiredEmailTemplateProps = Partial<TemplateRecipientExpiredProps>;
|
|
|
|
export const RecipientExpiredTemplate = ({
|
|
documentName = 'Open Source Pledge.pdf',
|
|
recipientName = 'John Doe',
|
|
recipientEmail = 'john@example.com',
|
|
documentLink = 'https://documenso.com',
|
|
assetBaseUrl = 'http://localhost:3002',
|
|
}: RecipientExpiredEmailTemplateProps) => {
|
|
const { _ } = useLingui();
|
|
|
|
const previewText = msg`The signing window for "${recipientName}" on document "${documentName}" has expired.`;
|
|
|
|
return (
|
|
<Html>
|
|
<Head />
|
|
<Preview>{_(previewText)}</Preview>
|
|
|
|
<Body className="mx-auto my-auto bg-white font-sans">
|
|
<Section>
|
|
<Container className="mx-auto mt-8 mb-2 max-w-xl rounded-lg border border-slate-200 border-solid p-4 backdrop-blur-sm">
|
|
<Section>
|
|
<TemplateBrandingLogo assetBaseUrl={assetBaseUrl} className="mb-4 h-6" />
|
|
|
|
<TemplateRecipientExpired
|
|
documentName={documentName}
|
|
recipientName={recipientName}
|
|
recipientEmail={recipientEmail}
|
|
documentLink={documentLink}
|
|
assetBaseUrl={assetBaseUrl}
|
|
/>
|
|
</Section>
|
|
</Container>
|
|
|
|
<Hr className="mx-auto mt-12 max-w-xl" />
|
|
|
|
<Container className="mx-auto max-w-xl">
|
|
<TemplateFooter />
|
|
</Container>
|
|
</Section>
|
|
</Body>
|
|
</Html>
|
|
);
|
|
};
|
|
|
|
export default RecipientExpiredTemplate;
|