Files
documenso/packages/email/template-components/template-document-rejection-confirmed.tsx
Lucas Smith 5398026b80 feat: signature rejection (#1472)
## Description

Adds support for rejecting a given document informing the document
owner.

Flows for resolving a rejection don't currently exist so it's up to the
document owner to reach out to the recipient and work out a way to move
forward via a new document or offline agreement.

## Related Issue


## Changes Made

- Added new rejection properties to the recipient schema
- Added API endpoints to support rejection
- Added email templates for notifying the document owner and recipient
- Added a dialog on the signing page to start the rejection flow.

## Testing Performed

- Manually tested the flow end to end
- Automated tests are planned
2024-11-14 21:37:42 +11:00

49 lines
1.4 KiB
TypeScript

import { Trans } from '@lingui/macro';
import { Container, Heading, Section, Text } from '../components';
interface TemplateDocumentRejectionConfirmedProps {
recipientName: string;
documentName: string;
documentOwnerName: string;
reason?: string;
}
export function TemplateDocumentRejectionConfirmed({
recipientName,
documentName,
documentOwnerName,
reason,
}: TemplateDocumentRejectionConfirmedProps) {
return (
<Container>
<Section>
<Heading className="text-2xl font-semibold">
<Trans>Rejection Confirmed</Trans>
</Heading>
<Text className="text-primary text-base">
<Trans>
This email confirms that you have rejected the document{' '}
<strong className="font-bold">"{documentName}"</strong> sent by {documentOwnerName}.
</Trans>
</Text>
{reason && (
<Text className="text-base font-medium text-slate-400">
<Trans>Rejection reason: {reason}</Trans>
</Text>
)}
<Text className="text-base">
<Trans>
The document owner has been notified of this rejection. No further action is required
from you at this time. The document owner may contact you with any questions regarding
this rejection.
</Trans>
</Text>
</Section>
</Container>
);
}