"use strict";
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
const jsxRuntime = require("react/jsx-runtime");
const reactDatagridUi = require("@contember/react-datagrid-ui");
const RequestContext = require("../routing/RequestContext.cjs");
const DataGridPageNameKeyProvider = ({ children }) => {
  const pageName = RequestContext.useCurrentRequest()?.pageName;
  return /* @__PURE__ */ jsxRuntime.jsx(reactDatagridUi.DataGridKeyProvider, { value: pageName ?? "", children });
};
exports.DataGridPageNameKeyProvider = DataGridPageNameKeyProvider;
//# sourceMappingURL=DataGridPageNameKeyProvider.cjs.map
