import { msg } from '@lingui/macro'; import { useLingui } from '@lingui/react'; import { Body, Container, Head, Html, Img, Preview, Section } from '../components'; import { useBranding } from '../providers/branding'; import type { TemplateDocumentSelfSignedProps } from '../template-components/template-document-self-signed'; import { TemplateDocumentSelfSigned } from '../template-components/template-document-self-signed'; import { TemplateFooter } from '../template-components/template-footer'; export type DocumentSelfSignedTemplateProps = TemplateDocumentSelfSignedProps; export const DocumentSelfSignedEmailTemplate = ({ documentName = 'Open Source Pledge.pdf', assetBaseUrl = 'http://localhost:3002', }: DocumentSelfSignedTemplateProps) => { const { _ } = useLingui(); const branding = useBranding(); const previewText = msg`Completed Document`; const getAssetUrl = (path: string) => { return new URL(path, assetBaseUrl).toString(); }; return ( {_(previewText)}
{branding.brandingEnabled && branding.brandingLogo ? ( Branding Logo ) : ( Documenso Logo )}
); }; export default DocumentSelfSignedEmailTemplate;