import { DataBindingProvider } from "@contember/binding";
import { memo } from "react";
import { getPageName } from "./getPageName.js";
import { jsx } from "react/jsx-runtime";
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__ */ jsx(DataBindingProvider, {
  stateComponent: FeedbackRenderer,
  children: /* @__PURE__ */ jsx(DataGrid, {
    ...dataGridProps,
    component: DataGridPageRenderer,
    componentProps: rendererProps,
    children
  })
}));
DataGridPage.displayName = "DataGridPage";
DataGridPage.getPageName = getPageName;
export {
  DataGridPage
};
//# sourceMappingURL=DataGridPage.js.map
