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