import { jsxDEV } from "react/jsx-dev-runtime";
import { DataBindingProvider, EntitySubTree } from "@contember/binding";
import { memo } from "react";
import { useOnPersistSuccess } from "../useOnPersistSuccess.js";
import { FeedbackRenderer } from "../../bindingFacade/renderers/FeedbackRenderer.js";
const CreateScope = memo(
  ({ children, redirectOnSuccess, onPersistSuccess, ...entityProps }) => {
    return /* @__PURE__ */ jsxDEV(DataBindingProvider, { stateComponent: FeedbackRenderer, 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: 26,
      columnNumber: 5
    }, globalThis) }, void 0, false, {
      fileName: "/__w/interface/interface/packages/admin/src/components/pageRouting/Scopes/CreateScope.tsx",
      lineNumber: 25,
      columnNumber: 4
    }, globalThis);
  }
);
CreateScope.displayName = "CreateScope";
export {
  CreateScope
};
//# sourceMappingURL=CreateScope.js.map
