import type { DecodeReading } from "../../../../../types/types";
import ModalComponent from "../../../../../ui/ModalComponent";
import PlatePatchModalContent from "./PlatePatchModalContent";

type PlatePatchModalProps = {
  isPlatePatchModalOpen: boolean;
  handleClose: () => void;
  currentPatch: DecodeReading | null;
  direction?: "entry" | "exit";
};

const PlatePatchModal = ({ isPlatePatchModalOpen, handleClose, currentPatch, direction }: PlatePatchModalProps) => {
  return (
    <ModalComponent isModalOpen={isPlatePatchModalOpen} close={handleClose}>
      <PlatePatchModalContent currentPatch={currentPatch} direction={direction} />
    </ModalComponent>
  );
};

export default PlatePatchModal;
