47 lines
1.2 KiB
TypeScript
47 lines
1.2 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-[#7AC455]" href="https://bls.media/sign/">
|
|
BLS sign.
|
|
</Link>
|
|
</Trans>
|
|
</Text>
|
|
)}
|
|
|
|
{branding.brandingCompanyDetails ? (
|
|
<Text className="my-8 text-sm text-slate-400">
|
|
{branding.brandingCompanyDetails.split('\n').map((line, idx) => {
|
|
return (
|
|
<>
|
|
{idx > 0 && <br />}
|
|
{line}
|
|
</>
|
|
);
|
|
})}
|
|
</Text>
|
|
) : (
|
|
<Text className="my-8 text-sm text-slate-400">
|
|
Made by BLS media
|
|
</Text>
|
|
)}
|
|
</Section>
|
|
);
|
|
};
|
|
|
|
export default TemplateFooter;
|