import { jsx as e } from "react/jsx-runtime";
import { createContext as c, useRef as l, useContext as n } from "react";
const o = c({
  targetScrollPage: { current: void 0 }
}), m = ({ children: t }) => {
  const r = l();
  return /* @__PURE__ */ e(o.Provider, { value: { targetScrollPage: r }, children: t });
}, u = () => n(o);
export {
  m as SmoothScrollProvider,
  u as useSmoothScrollContext
};
