import React from "react"; import styles from "./Modal.module.css"; import TablesPage from "./TablesPage.js"; import TableMaps from "../components/TableMaps"; import Transactions from "../pages/Transactions"; const Modal = ({ shopId, isOpen, onClose, modalContent }) => { if (!isOpen) return null; // Function to handle clicks on the overlay const handleOverlayClick = (event) => { // Close the modal only if the overlay is clicked onClose(); }; // Function to handle clicks on the modal content const handleContentClick = (event) => { // Prevent click event from propagating to the overlay event.stopPropagation(); }; return (