import { jsx as _jsx } from "react/jsx-runtime";
import { createContext, useContext } from "react";
const modalContext = createContext({});
function ModalProvider(props) {
    return (_jsx(modalContext.Provider, { value: { makeInvisible: props.makeInvisible }, children: props.children }));
}
function useModal() {
    return useContext(modalContext);
}
export { ModalProvider, useModal };
