import { jsx as r } from "react/jsx-runtime";
import { createContext as d, useContext as i } from "react";
import { appConsole as m } from "../utils/appConsole.js";
import { LoaderIcon as s } from "../components/icons/LoaderIcon.js";
const t = d({
  LoaderImageComponent: void 0
}), u = () => {
  const o = i(t);
  return typeof o.LoaderImageComponent > "u" && m.error("Please use this hooks inside children component of RPProvider"), o;
}, C = ({ children: o, loaderImage: e }) => {
  const n = () => e || /* @__PURE__ */ r(s, {});
  return /* @__PURE__ */ r(
    t.Provider,
    {
      value: {
        LoaderImageComponent: n
      },
      children: o
    }
  );
};
export {
  t as LoaderContext,
  C as LoaderProvider,
  u as useLoaderContext
};
