import { useLingui } from '@lingui/react'; import type { RecipientRole } from '@prisma/client'; import { RECIPIENT_ROLES_DESCRIPTION } from '@documenso/lib/constants/recipient-roles'; import { Body, Container, Head, Hr, Html, Img, Preview, Section, Text } from '../components'; import { useBranding } from '../providers/branding'; import { TemplateDocumentReminder } from '../template-components/template-document-reminder'; import { TemplateFooter } from '../template-components/template-footer'; export type DocumentReminderEmailTemplateProps = { recipientName: string; documentName: string; signDocumentLink: string; assetBaseUrl?: string; customBody?: string; role: RecipientRole; }; export const DocumentReminderEmailTemplate = ({ recipientName, documentName = 'Open Source Pledge.pdf', signDocumentLink = 'https://documenso.com', assetBaseUrl = 'http://localhost:3002', customBody, role, }: DocumentReminderEmailTemplateProps) => { const { i18n } = useLingui(); const branding = useBranding(); const action = i18n.t(RECIPIENT_ROLES_DESCRIPTION[role].actionVerb).toLowerCase(); const previewTextString = `Reminder to ${action} ${documentName}`; const getAssetUrl = (path: string) => { return new URL(path, assetBaseUrl).toString(); }; return (
)}
{customBody}