All files / src/pages/MerchantCheckout/components PrivacyPolicyFooter.tsx

83.33% Statements 5/6
100% Branches 0/0
66.66% Functions 2/3
80% Lines 4/5

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            1x 6x     6x                 6x                      
import { styled } from "@theme/v2/Provider";
import { Stack } from "@mui/material";
import GiveLink from "@shared/Link/GiveLink";
import NiceModal from "@ebay/nice-modal-react";
import { PRIVACY_POLICY_MODAL } from "modals/modal_names";
 
const PrivacyPolicyFooter = () => {
  const handleOpenPrivacyPolicy = () => {
    NiceModal.show(PRIVACY_POLICY_MODAL);
  };
  return (
    <StyledContainer>
      <GiveLink component="button" onClick={handleOpenPrivacyPolicy}>
        Privacy Policy
      </GiveLink>
    </StyledContainer>
  );
};
 
const StyledContainer = styled(Stack)(({ theme }) => ({
  borderTop: `1px solid ${theme.palette.border?.secondary}`,
  flexDirection: "row",
  justifyContent: "center",
  paddingTop: theme.spacing(3),
  width: "100%",
  alignSelf: "flex-end",
  paddingBottom: theme.spacing(2),
}));
 
export default PrivacyPolicyFooter;