- added modal for entry and exit sightings and plate patches
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
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;
|
||||
Reference in New Issue
Block a user