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 41 42 43 44 45 46 47 48 | 4x 10x 10x 10x 10x | 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 Waiver1915bCMSEmail = (props: { variables: | (Events["CapitatedInitial"] & CommonEmailVariables) | (Events["ContractingInitial"] & CommonEmailVariables) | (Events["CapitatedRenewal"] & CommonEmailVariables) | (Events["ContractingRenewal"] & CommonEmailVariables) | (Events["CapitatedAmendment"] & CommonEmailVariables) | (Events["ContractingAmendment"] & CommonEmailVariables); }) => { const variables = props.variables; const previewText = `${variables.authority} ${variables.actionType} Submitted`; const heading = `The OneMAC Submission Portal received a ${ variables.authority } ${variables.actionType} waiver 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 Address": variables.submitterEmail, [`${variables.actionType} Waiver Number`]: variables.id, "Waiver Authority": variables.authority, "Proposed Effective Date": formatDate(variables.proposedEffectiveDate), Summary: variables.additionalInformation, }} /> <Attachments attachments={variables.attachments} /> </BaseEmailTemplate> ); }; |