import { useContext } from "react";
import { ModalsContext } from "../context.mjs";
function useModals() {
  const ctx = useContext(ModalsContext);
  if (!ctx) {
    throw new Error(
      "[@mantine/modals] useModals hook was called outside of context, wrap your app with ModalsProvider component"
    );
  }
  return ctx;
}
export {
  useModals
};
