import { jsx as s } from "react/jsx-runtime";
import { createContext as c, useContext as i, useState as d } from "react";
import { appConsole as m } from "../utils/appConsole.js";
import { ScrollMode as e } from "../utils/types.js";
import { useInitialStateContext as S } from "./InitialStateContext.js";
const t = c({
  scrollMode: e.VERTICAL_SCROLLING,
  setScrollMode: () => {
  }
}), a = () => {
  const o = i(t);
  return typeof o.scrollMode > "u" && m.error("Please use this hooks inside children component of RPProvider"), o;
}, x = ({ children: o }) => {
  const { initialScrollMode: r = e.VERTICAL_SCROLLING } = S(), [l, n] = d(r);
  return /* @__PURE__ */ s(t.Provider, { value: { scrollMode: l, setScrollMode: n }, children: o });
};
export {
  t as ScrollModeContext,
  x as ScrollModeProvider,
  a as useScrollModeContext
};
