import ModalComponent from "../../../../../components/ui/ModalComponent";
import type { SightingType } from "../../../../../utils/types";
import SightingModalContent from "./SightingModalContent";

type SightingItemModalProps = {
  isOpen: boolean;
  close: () => void;
  sighting: SightingType | null;
};
const SightingItemModal = ({ isOpen, close, sighting }: SightingItemModalProps) => {
  return (
    <ModalComponent isModalOpen={isOpen} close={close}>
      <SightingModalContent sighting={sighting} />
    </ModalComponent>
  );
};

export default SightingItemModal;
