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 | import NiceModal from "@ebay/nice-modal-react";
import GiveBaseModal from "@shared/modals/GiveBaseModal";
import GiveText from "@shared/Text/GiveText";
import useNiceModal from "@common/Modal/ModalFactory/hooks/useNiceModal";
import { useGetPublicForm } from "@sections/PayBuilder/components/hooks/useGetPublicForm";
const RefundPolicyModal = NiceModal.create(
({ publicFormId }: { publicFormId?: string }) => {
const { open, onClose } = useNiceModal();
const { data } = useGetPublicForm(publicFormId);
return (
<GiveBaseModal
open={open}
title="Refund Policy"
width="600px"
onClose={onClose}
showFooter={false}
>
<GiveText
color="secondary"
variant="bodyS"
sx={{ whiteSpace: "pre-line" }}
>
{data?.msaRefundPolicy}
</GiveText>
</GiveBaseModal>
);
},
);
export default RefundPolicyModal;
|