import { memo, createElement } from "react";
import { DataBindingProvider } from "@contember/binding";
import { getPageName } from "./getPageName.js";
import { DataGrid } from "../../bindingFacade/collections/DataGrid/grid/DataGrid.js";
import { DataGridPageRenderer } from "../../bindingFacade/renderers/pageRenderers/DataGridPageRenderer.js";
import { FeedbackRenderer } from "../../bindingFacade/renderers/FeedbackRenderer.js";
const DataGridPage = memo(({
  children,
  rendererProps,
  pageName,
  ...dataGridProps
}) => /* @__PURE__ */ createElement(DataBindingProvider, {
  stateComponent: FeedbackRenderer
}, /* @__PURE__ */ createElement(DataGrid, {
  ...dataGridProps,
  component: DataGridPageRenderer,
  componentProps: rendererProps
}, children)));
DataGridPage.displayName = "DataGridPage";
DataGridPage.getPageName = getPageName;
export { DataGridPage };
//# sourceMappingURL=DataGridPage.js.map
