/**
* Rejection Notification Email Template
*/
import { RejectionNotificationData } from './types';
import { getEmailFooter, getEmailHeader, HeaderStyles, wrapRichText, getResponsiveStyles } from './helpers';
import { getBrandedHeader } from './branding.config';
export function getRejectionNotificationEmail(data: RejectionNotificationData): string {
return `
Request Rejected
${getEmailHeader(getBrandedHeader({
title: 'Request Rejected',
...HeaderStyles.error
}))}
|
Dear ${data.initiatorName},
We regret to inform you that your request has been rejected by ${data.approverName}.
Request Summary
|
Request ID:
|
${data.requestId}
|
|
Rejected By:
|
${data.approverName}
|
|
Rejected On:
|
${data.rejectionDate}
|
|
Time:
|
${data.rejectionTime}
|
|
Request Type:
|
${data.requestType}
|
|
Reason for Rejection:
${wrapRichText(data.rejectionReason)}
What You Can Do:
- Review the rejection reason carefully
- Make necessary adjustments to your request
- Submit a new request with the required changes
- Contact ${data.approverName} for more clarification if needed
If you have any questions, please don't hesitate to reach out.
|
${getEmailFooter(data.companyName)}
|
`;
}