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

100% Statements 3/3
100% Branches 0/0
100% Functions 1/1
100% Lines 3/3

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      1x   2x 2x                                
import GivePopup from "@shared/Popup/GivePopup";
import NiceModal, { useModal } from "@ebay/nice-modal-react";
 
const ProcessingIssuePopup = NiceModal.create(
  ({ handleTryAgain }: { handleTryAgain: () => void }) => {
    const { visible, remove } = useModal();
    return (
      <GivePopup
        type="success"
        iconType="warning"
        title="Processing Issue"
        description="We’re sorry, we encountered an issue while processing your payment. Please return to the main page and try again."
        open={visible}
        onClose={remove}
        showCloseButton={false}
        buttons={[{ label: "Try again", onClick: handleTryAgain }]}
      />
    );
  },
);
 
export default ProcessingIssuePopup;