All files / src/sections/PayBuilder/components PublicFormPolicyFooter.tsx

50% Statements 2/4
100% Branches 0/0
33.33% Functions 1/3
50% Lines 2/4

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              68x 68x                                                                  
import { Stack } from "@mui/material";
import { useAppTheme } from "@theme/v2/Provider";
import GiveLink from "@shared/Link/GiveLink";
import NiceModal from "@ebay/nice-modal-react";
import { PRIVACY_POLICY_MODAL, REFUND_POLICY_MODAL } from "modals/modal_names";
 
function PublicFormPolicyFooter() {
  const { palette } = useAppTheme();
  return (
    <Stack
      width="100%"
      direction="row"
      gap="24px"
      padding="24px 0px"
      justifyContent="center"
      marginTop="16px"
      sx={{
        borderTop: `1px solid ${palette.border?.secondary}`,
      }}
    >
      <GiveLink
        onClick={() =>
          NiceModal.show(REFUND_POLICY_MODAL, {
            publicFormId: location.pathname.split("/").slice(-1)[0],
          })
        }
        component="p"
      >
        Refund Policy
      </GiveLink>
      <GiveLink
        onClick={() => NiceModal.show(PRIVACY_POLICY_MODAL)}
        component="p"
      >
        Privacy Policy
      </GiveLink>
    </Stack>
  );
}
 
export default PublicFormPolicyFooter;