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 26 27 28 29 | 8x 1x 1x 1x | import { userRoleMap } from "shared-utils";
import { BasicFooter } from "../../email-components";
import { BaseEmailTemplate } from "../../email-templates";
import { UserRoleEmailType } from "../index";
import { statesMap } from "../roleHelper";
import { getApprovingUserRoleLabel, statusMap } from "../roleHelper";
export const AccessChangeNoticeEmail = ({ variables }: { variables: UserRoleEmailType }) => {
const stateAccess = variables.territory === "N/A" ? "" : ` for ${statesMap[variables.territory]}`;
const approvingRole = getApprovingUserRoleLabel(variables.role);
return (
<BaseEmailTemplate
previewText={`Your access as a ${variables.role}${stateAccess} has been ${statusMap[variables.status]}.`}
heading=""
applicationEndpointUrl={variables.applicationEndpointUrl}
footerContent={<BasicFooter />}
>
<p>Hello,</p>
<p>
Your access as a {userRoleMap[variables.role]}
{stateAccess} has been {statusMap[variables.status]}. If you have any questions, please
reach out to your {approvingRole}.
</p>
</BaseEmailTemplate>
);
};
|