"use strict";
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
const jsxRuntime = require("react/jsx-runtime");
const reactBinding = require("@contember/react-binding");
const reactDatagridUi = require("@contember/react-datagrid-ui");
const ui = require("@contember/ui");
const pageComponent = require("./pageComponent.cjs");
const DataGridPageRenderer = require("../../bindingFacade/renderers/pageRenderers/DataGridPageRenderer.cjs");
const FeedbackRenderer = require("../../bindingFacade/renderers/FeedbackRenderer.cjs");
const DataGridForPage = reactDatagridUi.createDataGrid(
  reactDatagridUi.createDataGridRenderer({
    Fallback: ui.SpinnerContainer,
    Container: DataGridPageRenderer.DataGridPageRenderer,
    staticRender: (props) => /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, { children: props.tile }),
    columnStaticRender: (props) => /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, { children: props.column.header })
  })
);
const DataGridPage = pageComponent.pageComponent(
  ({
    children,
    rendererProps,
    pageName: _INTENTIONALLY_OMITTED_pageName,
    ...dataGridProps
  }) => /* @__PURE__ */ jsxRuntime.jsx(reactBinding.DataBindingProvider, { stateComponent: FeedbackRenderer.FeedbackRenderer, children: /* @__PURE__ */ jsxRuntime.jsx(DataGridForPage, { ...dataGridProps, ...rendererProps, children }) }),
  "DataGridPage"
);
exports.DataGridPage = DataGridPage;
//# sourceMappingURL=DataGridPage.cjs.map
