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 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 | 72x 2x 2x 2x 2x 2x 72x 1x 72x 1x | import { useGetItem } from "@/api"; import { ActionForm, LoadingSpinner, PackageSection } from "@/components"; import { formSchemas } from "@/formSchemas"; import { useParams } from "react-router"; export const WithdrawPackageActionWaiver = () => { const { authority, id } = useParams(); const { data: waiver, isLoading: isWaiverLoading } = useGetItem(id); const authorityText = authority === "1915(c)" ? "1915(c) Appendix K" : authority; const waiverActionType = { New: "Initial Waiver", Renew: "Waiver Renewal", Amend: "Waiver Amendment", }; if (isWaiverLoading === true) { return <LoadingSpinner />; } return ( <ActionForm schema={formSchemas["withdraw-package"]} title={`Withdraw ${authorityText}`} fields={() => <PackageSection />} defaultValues={{ id, authority, attachments: { supportingDocumentation: { files: [], }, }, }} attachments={{ faqLink: "/faq/withdraw-package-waiver", callout: "Upload your supporting documentation for withdrawal or explain your need for withdrawal in the Additional Information section.", }} documentPollerArgs={{ property: "id", documentChecker: (check) => check.recordExists, }} bannerPostSubmission={{ header: "Withdraw package request has been submitted", body: "If CMS needs any additional information, they will follow up by email.", variant: "success", }} breadcrumbText="Withdraw Package" formDescription={`Complete this form to withdraw ${ authority === "1915(c)" ? "this 1915(c) Appendix K" : "a" } package. Once complete, you will not be able to resubmit this package. CMS will be notified and will use this content to review your request. If CMS needs any additional information, they will follow up by email.`} preSubmissionMessage="Once complete, you will not be able to resubmit this package. CMS will be notified and will use this content to review your request. If CMS needs any additional information, they will follow up by email." additionalInformation={{ required: false, title: "Additional Information", label: "Explain your need for withdrawal, or upload supporting documentation.", }} promptPreSubmission={{ acceptButtonText: "Yes, withdraw package", header: "Withdraw package?", body: `You are about to withdraw ${authorityText} ${ waiverActionType[waiver?._source?.actionType] } ${id}. Completing this action will conclude the review of this ${authorityText} ${ waiverActionType[waiver?._source.actionType] } package. If you are not sure this is the correct action to select, contact your CMS point of contact for assistance.`, }} /> ); }; export const WithdrawPackageAction = () => { const { authority, id } = useParams(); return ( <ActionForm schema={formSchemas["withdraw-package"]} title={`Withdraw ${authority}`} fields={() => <PackageSection />} defaultValues={{ id, authority, attachments: { supportingDocumentation: { files: [], }, }, }} attachments={{ faqLink: "/faq/withdraw-package-spa", callout: "Upload your supporting documentation for withdrawal or explain your need for withdrawal in the Additional Information section.", }} documentPollerArgs={{ property: "id", documentChecker: (check) => check.recordExists, }} bannerPostSubmission={{ header: "Withdraw package request has been submitted", body: "If CMS needs any additional information, they will follow up by email.", variant: "success", }} breadcrumbText="Withdraw Package" formDescription="Complete this form to withdraw a package. Once complete, you will not be able to resubmit this package. CMS will be notified and will use this content to review your request. If CMS needs any additional information, they will follow up by email." preSubmissionMessage="Once complete, you will not be able to resubmit this package. CMS will be notified and will use this content to review your request. If CMS needs any additional information, they will follow up by email." additionalInformation={{ required: false, title: "Additional Information", label: "Explain your need for withdrawal, or upload supporting documentation.", }} promptPreSubmission={{ acceptButtonText: "Yes, withdraw package", header: "Withdraw package?", body: `You are about to withdraw ${authority} ${id}. Completing this action will conclude the review of this ${authority} package. If you are not sure this is the correct action to select, contact your CMS point of contact for assistance.`, }} /> ); }; export const WithdrawPackageActionChip = () => { const { authority, id } = useParams(); return ( <ActionForm schema={formSchemas["withdraw-package-chip"]} title={`Withdraw ${authority}`} fields={() => <PackageSection />} defaultValues={{ id, authority, }} attachments={{ faqLink: "/faq/withdraw-package-chip-spa", callout: "Official withdrawal letters are required and must be on state letterhead signed by the State Medicaid Director or CHIP Director.", }} bannerPostSubmission={{ header: "Withdraw package request has been submitted", body: "If CMS needs any additional information, they will follow up by email.", variant: "success", }} documentPollerArgs={{ property: "id", documentChecker: (check) => check.recordExists, }} breadcrumbText="Withdraw Package" additionalInformation={{ required: false, title: "Additional Information", label: "Explain your need for withdrawal.", }} formDescription="Complete this form to withdraw a package. Once complete, you will not be able to resubmit this package. CMS will be notified and will use this content to review your request. If CMS needs any additional information, they will follow up by email." preSubmissionMessage="Once complete, you will not be able to resubmit this package. CMS will be notified and will use this content to review your request. If CMS needs any additional information, they will follow up by email." promptPreSubmission={{ acceptButtonText: "Yes, withdraw package", header: "Withdraw package?", body: `You are about to withdraw ${authority} ${id}. Completing this action will conclude the review of this ${authority} package. If you are not sure this is the correct action to select, contact your CMS point of contact for assistance.`, }} /> ); }; |