All files / lib/libs/email/content/userRoles/emailTemplates AccessPendingNotice.tsx

100% Statements 4/4
100% Branches 0/0
100% Functions 1/1
100% Lines 4/4

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>
  );
};