import { useContext as o } from "react";
import { ModalContext as e } from "../../contexts/ModalContext/index.js";
function s() {
  const t = o(e);
  if (!t)
    throw new Error("useModal context must be use inside ModalContext");
  return t;
}
export {
  s as default,
  s as useModal
};
