import { jsxDEV } from "react/jsx-dev-runtime";
import { DataBindingProvider, EntitySubTree } from "@contember/react-binding";
import { useOnPersistSuccess } from "../useOnPersistSuccess.js";
import { scopeComponent } from "./scopeComponent.js";
import { FeedbackRenderer } from "../../bindingFacade/renderers/FeedbackRenderer.js";
const CreateScope = scopeComponent(
  ({
    children,
    redirectOnSuccess,
    onPersistSuccess,
    stateComponent,
    stateProps,
    ...entityProps
  }) => {
    return /* @__PURE__ */ jsxDEV(DataBindingProvider, { stateComponent: stateComponent ?? FeedbackRenderer, stateProps, children: /* @__PURE__ */ jsxDEV(EntitySubTree, { ...entityProps, onPersistSuccess: useOnPersistSuccess({ redirectOnSuccess, onPersistSuccess }), isCreating: true, children }, void 0, false, {
      fileName: "/__w/interface/interface/packages/admin/src/components/pageRouting/Scopes/CreateScope.tsx",
      lineNumber: 39,
      columnNumber: 5
    }, void 0) }, void 0, false, {
      fileName: "/__w/interface/interface/packages/admin/src/components/pageRouting/Scopes/CreateScope.tsx",
      lineNumber: 38,
      columnNumber: 4
    }, void 0);
  },
  "CreateScope"
);
export {
  CreateScope
};
//# sourceMappingURL=CreateScope.js.map
