import { jsx, Fragment } from "react/jsx-runtime";
import { DataBindingProvider } from "@contember/react-binding";
import { createDataGrid, createDataGridRenderer } from "@contember/react-datagrid-ui";
import { SpinnerContainer } from "@contember/ui";
import { pageComponent } from "./pageComponent.js";
import { DataGridPageRenderer } from "../../bindingFacade/renderers/pageRenderers/DataGridPageRenderer.js";
import { FeedbackRenderer } from "../../bindingFacade/renderers/FeedbackRenderer.js";
const DataGridForPage = createDataGrid(
  createDataGridRenderer({
    Fallback: SpinnerContainer,
    Container: DataGridPageRenderer,
    staticRender: (props) => /* @__PURE__ */ jsx(Fragment, { children: props.tile }),
    columnStaticRender: (props) => /* @__PURE__ */ jsx(Fragment, { children: props.column.header })
  })
);
const DataGridPage = pageComponent(
  ({
    children,
    rendererProps,
    pageName: _INTENTIONALLY_OMITTED_pageName,
    ...dataGridProps
  }) => /* @__PURE__ */ jsx(DataBindingProvider, { stateComponent: FeedbackRenderer, children: /* @__PURE__ */ jsx(DataGridForPage, { ...dataGridProps, ...rendererProps, children }) }),
  "DataGridPage"
);
export {
  DataGridPage
};
//# sourceMappingURL=DataGridPage.js.map
