import n from "../../../@babel/runtime/helpers/esm/toConsumableArray.mjs";
import * as t from "react";
var a = [], o = /* @__PURE__ */ t.createContext(null);
function c() {
  return t.useContext(o);
}
var u = /* @__PURE__ */ t.createContext(a);
function x(e) {
  var r = t.useContext(u);
  return t.useMemo(function() {
    return e !== void 0 ? [].concat(n(r), [e]) : r;
  }, [r, e]);
}
var C = /* @__PURE__ */ t.createContext(null);
export {
  o as PathRegisterContext,
  u as PathTrackerContext,
  C as PathUserContext,
  x as useFullPath,
  c as useMeasure
};
