import { jsx as a } from "react/jsx-runtime";
import { createContext as u, useContext as s, useState as c } from "react";
import { useInitialStateContext as i } from "./InitialStateContext.js";
const e = u({
  currentPage: 1,
  setCurrentPage: () => {
  }
}), C = () => s(e), x = ({ children: t }) => {
  const { initialPage: r = 1 } = i(), [o, n] = c(r);
  return /* @__PURE__ */ a(e.Provider, { value: { currentPage: o, setCurrentPage: n }, children: t });
};
export {
  e as GlobalCurrentPage,
  x as GlobalCurrentPageProvider,
  C as useGlobalCurrentPage
};
