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

100% Statements 3/3
50% Branches 1/2
100% Functions 1/1
100% Lines 3/3

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          8x 1x 1x                              
import { BasicFooter } from "../../email-components";
import { BaseEmailTemplate } from "../../email-templates";
import { UserRoleEmailType } from "../index";
import { statesMap } from "../roleHelper";
 
export const SelfRevokeAdminChangeEmail = ({ variables }: { variables: UserRoleEmailType }) => {
  const stateAccess = variables.territory === "N/A" ? "" : ` for ${statesMap[variables.territory]}`;
  return (
    <BaseEmailTemplate
      previewText={`The OneMAC State access for ${stateAccess} has been self-revoked by ${variables.fullName}.`}
      heading=""
      applicationEndpointUrl={variables.applicationEndpointUrl}
      footerContent={<BasicFooter />}
    >
      <p>Hello,</p>
      <p>
        The OneMAC State access for {stateAccess} has been self-revoked by {variables.fullName}.
        Please log into your User Management Dashboard to see the updated access.
      </p>
    </BaseEmailTemplate>
  );
};