mirror of
https://github.com/hanzoai/sign.git
synced 2026-10-21 01:21:51 +00:00
Emails, the signing page's title, the sealed PDF's reason, the sign-in refusal and the dialogs still said Hanzo Sign. The catalogs change with the strings, message for message, so every translation keeps its id.
52 lines
1.3 KiB
TypeScript
52 lines
1.3 KiB
TypeScript
import { Trans } from '@lingui/react/macro';
|
|
|
|
import { Link, Section, Text } from '../components';
|
|
import { useBranding } from '../providers/branding';
|
|
|
|
export type TemplateFooterProps = {
|
|
isDocument?: boolean;
|
|
};
|
|
|
|
export const TemplateFooter = ({ isDocument = true }: TemplateFooterProps) => {
|
|
const branding = useBranding();
|
|
|
|
return (
|
|
<Section>
|
|
{isDocument && !branding.brandingHidePoweredBy && (
|
|
<Text className="my-4 text-base text-slate-400">
|
|
<Trans>
|
|
This document was sent using{' '}
|
|
<Link className="text-black" href="https://esign.hanzo.ai/mail-footer">
|
|
Hanzo eSign
|
|
</Link>
|
|
.
|
|
</Trans>
|
|
</Text>
|
|
)}
|
|
|
|
{branding.brandingEnabled && branding.brandingCompanyDetails && (
|
|
<Text className="my-8 text-sm text-slate-400">
|
|
{branding.brandingCompanyDetails.split('\n').map((line, idx) => {
|
|
return (
|
|
<>
|
|
{idx > 0 && <br />}
|
|
{line}
|
|
</>
|
|
);
|
|
})}
|
|
</Text>
|
|
)}
|
|
|
|
{!branding.brandingEnabled && (
|
|
<Text className="my-8 text-sm text-slate-400">
|
|
Hanzo AI, Inc.
|
|
<br />
|
|
2261 Market Street, #5211, San Francisco, CA 94114, USA
|
|
</Text>
|
|
)}
|
|
</Section>
|
|
);
|
|
};
|
|
|
|
export default TemplateFooter;
|