"use strict";
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
const jsxRuntime = require("react/jsx-runtime");
const reactDataview = require("@contember/react-dataview");
const reactRouting = require("@contember/react-routing");
const DataViewPageNameKeyProvider = ({ children }) => {
  const pageName = reactRouting.useCurrentRequest()?.pageName;
  return /* @__PURE__ */ jsxRuntime.jsx(reactDataview.DataViewKeyProvider, { value: pageName ?? "", children });
};
exports.DataViewPageNameKeyProvider = DataViewPageNameKeyProvider;
//# sourceMappingURL=DataViewPageNameKeyProvider.cjs.map
