Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 | 8x 2x 2x 2x | import { formatDate, userRoleMap } from "shared-utils";
import { BasicFooter } from "../../email-components";
import { BaseEmailTemplate } from "../../email-templates";
import { UserRoleEmailType } from "../index";
export const AccessPendingNoticeEmail = ({ variables }: { variables: UserRoleEmailType }) => {
const requestDate = formatDate(Date.now());
const roleFormated = userRoleMap[variables.role];
return (
<BaseEmailTemplate
previewText={`We received your request as a ${roleFormated} on ${requestDate}`}
heading=""
applicationEndpointUrl={variables.applicationEndpointUrl}
footerContent={<BasicFooter />}
>
<p>Hello,</p>
<p>
We received your request as a {roleFormated} on {requestDate}. Your request is pending
review and you will receive a confirmation receipt when your status is reviewed.
</p>
</BaseEmailTemplate>
);
};
|