import { jsx } from "react/jsx-runtime";
import { DataGridKeyProvider } from "@contember/react-datagrid-ui";
import { useCurrentRequest } from "../routing/RequestContext.js";
const DataGridPageNameKeyProvider = ({ children }) => {
  const pageName = useCurrentRequest()?.pageName;
  return /* @__PURE__ */ jsx(DataGridKeyProvider, { value: pageName ?? "", children });
};
export {
  DataGridPageNameKeyProvider
};
//# sourceMappingURL=DataGridPageNameKeyProvider.js.map
