lib/libs/email/content/withdrawPackage/emailTemplates/MedSpaCMS.tsx
import { CommonEmailVariables, Events } from "shared-types";
import { PackageDetails, BasicFooter, Divider } from "../../email-components";
import { BaseEmailTemplate } from "../../email-templates";
export const MedSpaCMSEmail = ({
variables,
}: {
variables: Events["WithdrawPackage"] & CommonEmailVariables;
}) => (
<BaseEmailTemplate
previewText={`SPA SPA Package ${variables.id} Withdraw Request`}
heading="The OneMAC Submission Portal received a request to withdraw the package below. The package will no longer be considered for CMS review:"
applicationEndpointUrl={variables.applicationEndpointUrl}
footerContent={<BasicFooter />}
>
<Divider />
<PackageDetails
details={{
"State or Territory": variables.territory,
Name: variables.submitterName,
"Email Address": variables.submitterEmail,
"Medicaid SPA Package ID": variables.id,
Summary: variables.additionalInformation,
}}
/>
</BaseEmailTemplate>
);