Enterprise-CMCS/macpro-mako

View on GitHub
lib/libs/email/content/withdrawPackage/emailTemplates/WaiverState.tsx

Summary

Maintainability
A
0 mins
Test Coverage
import { CommonEmailVariables, Events } from "shared-types";
import {
  FollowUpNotice,
  BasicFooter,
  PackageDetails,
  MailboxNotice,
  Divider,
} from "../../email-components";
import { BaseEmailTemplate } from "../../email-templates";

export const WaiverStateEmail = ({
  variables,
}: {
  variables: Events["WithdrawPackage"] & CommonEmailVariables;
}) => {
  return (
    <BaseEmailTemplate
      previewText={`Waiver Package ${variables.id} Withdraw Request`}
      heading={
        "This is confirmation that you have requested to withdraw the package below. The package will no longer be considered for CMS review:"
      }
      applicationEndpointUrl={variables.applicationEndpointUrl}
      footerContent={<BasicFooter />}
    >
      <PackageDetails
        details={{
          "State or Territory": variables.territory,
          Name: variables.submitterName,
          "Email Address": variables.submitterEmail,
          "Waiver Number": variables.id,
          Summary: variables.additionalInformation,
        }}
      />
      <Divider />
      <MailboxNotice type="Waiver" />
      <FollowUpNotice />
    </BaseEmailTemplate>
  );
};