Files
documenso/packages/email/template-components/template-document-rejected.tsx
T
ephraimduncan 138d663c25 chore: merge main, resolve biome formatting conflicts
Merge origin/main into feat/external-2fa-codes. Resolve formatting
conflicts caused by biome rollout; preserve both feature streams:
PR's external 2FA token + signing-session 2FA proof additions plus
main's RateLimit/RecipientExpired/signingReminders/date-auto-insert.

In complete-document-with-token.ts, drop the duplicate early
field-fetching block introduced when main moved that logic later
with date auto-insert support; keep the EXTERNAL_TWO_FACTOR_AUTH
check using derivedRecipientActionAuth.
2026-05-12 11:46:11 +00:00

49 lines
1.3 KiB
TypeScript

import { Trans } from '@lingui/react/macro';
import { Button, Heading, Text } from '../components';
export interface TemplateDocumentRejectedProps {
documentName: string;
recipientName: string;
rejectionReason?: string;
documentUrl: string;
}
export function TemplateDocumentRejected({
documentName,
recipientName: signerName,
rejectionReason,
documentUrl,
}: TemplateDocumentRejectedProps) {
return (
<div className="mt-4">
<Heading className="mb-4 text-center font-semibold text-2xl text-slate-800">
<Trans>Document Rejected</Trans>
</Heading>
<Text className="mb-4 text-base">
<Trans>
{signerName} has rejected the document "{documentName}".
</Trans>
</Text>
{rejectionReason && (
<Text className="mb-4 text-base text-slate-400">
<Trans>Reason for rejection: {rejectionReason}</Trans>
</Text>
)}
<Text className="mb-6 text-base">
<Trans>You can view the document and its status by clicking the button below.</Trans>
</Text>
<Button
href={documentUrl}
className="inline-flex items-center justify-center rounded-lg bg-documenso-500 px-6 py-3 text-center font-medium text-black text-sm no-underline"
>
<Trans>View Document</Trans>
</Button>
</div>
);
}