import { jsx } from "react/jsx-runtime";
import { DataBindingProvider } from "@contember/react-binding";
import { DataGrid } from "@contember/react-datagrid-ui";
import { scopeComponent } from "./scopeComponent.js";
import { FeedbackRenderer } from "../../bindingFacade/renderers/FeedbackRenderer.js";
const DataGridScope = scopeComponent(
  ({ stateComponent, stateProps, skipBindingStateUpdateAfterPersist, refreshDataBindingOnPersist, ...props }) => /* @__PURE__ */ jsx(
    DataBindingProvider,
    {
      stateComponent: stateComponent ?? FeedbackRenderer,
      stateProps,
      skipStateUpdateAfterPersist: skipBindingStateUpdateAfterPersist,
      refreshOnPersist: refreshDataBindingOnPersist ?? true,
      children: /* @__PURE__ */ jsx(DataGrid, { ...props })
    }
  ),
  "DataGridScope"
);
export {
  DataGridScope
};
//# sourceMappingURL=DataGridScope.js.map
