mirror of
https://github.com/documenso/documenso.git
synced 2025-11-13 08:13:56 +10:00
49 lines
1.3 KiB
TypeScript
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 text-2xl font-semibold 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="bg-documenso-500 inline-flex items-center justify-center rounded-lg px-6 py-3 text-center text-sm font-medium text-black no-underline"
|
|
>
|
|
<Trans>View Document</Trans>
|
|
</Button>
|
|
</div>
|
|
);
|
|
}
|