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 30 31 32 33 34 35 36 37 38 39 40 | 4x 7x 6x 6x 6x | import { CommonEmailVariables, Events } from "shared-types"; import { Attachments, LoginInstructions, PackageDetails, BasicFooter, } from "../../email-components"; import { BaseEmailTemplate } from "../../email-templates"; import { formatDate } from "shared-utils"; export const MedSpaCMSEmail = (props: { variables: Events["NewMedicaidSubmission"] & CommonEmailVariables; }) => { const variables = props.variables; const previewText = `Medicaid SPA ${variables.id} Submitted`; const heading = "The OneMAC Submission Portal received a Medicaid SPA Submission:"; return ( <BaseEmailTemplate previewText={previewText} heading={heading} applicationEndpointUrl={variables.applicationEndpointUrl} footerContent={<BasicFooter />} > <LoginInstructions appEndpointURL={variables.applicationEndpointUrl} useThisLink /> <PackageDetails details={{ "State or Territory": variables.territory, Name: variables.submitterName, Email: variables.submitterEmail, "Medicaid SPA ID": variables.id, "Proposed Effective Date": formatDate(variables.proposedEffectiveDate), Summary: variables.additionalInformation, }} /> <Attachments attachments={variables.attachments} /> </BaseEmailTemplate> ); }; |