fix: add email reporting (#2918)

This commit is contained in:
David Nguyen
2026-06-03 16:05:39 +10:00
committed by GitHub
parent 743d31651f
commit 993a494784
24 changed files with 521 additions and 33 deletions
@@ -5,13 +5,26 @@ import { useBranding } from '../providers/branding';
export type TemplateFooterProps = {
isDocument?: boolean;
reportUrl?: string;
};
export const TemplateFooter = ({ isDocument = true }: TemplateFooterProps) => {
export const TemplateFooter = ({ isDocument = true, reportUrl }: TemplateFooterProps) => {
const branding = useBranding();
return (
<Section>
{reportUrl && (
<Text className="my-4 text-base text-slate-400">
<Trans>
Did not expect this email?{' '}
<Link className="text-[#7AC455]" href={reportUrl}>
Click here to report the sender
</Link>
. Never sign a document you don't recognize or weren't expecting.
</Trans>
</Text>
)}
{isDocument && !branding.brandingHidePoweredBy && (
<Text className="my-4 text-base text-slate-400">
<Trans>