import { jsxDEV, Fragment } from "react/jsx-dev-runtime";
import { Component, HasOne } from "@contember/binding";
import { useDynamicSingleChoiceField } from "./hooks/useDynamicSingleChoiceField.js";
import { renderDynamicChoiceFieldStatic } from "./renderDynamicChoiceFieldStatic.js";
const DynamicSingleChoiceField = Component(
  (props) => props.children(useDynamicSingleChoiceField(props)),
  (props, environment) => {
    const { subTree, renderedOption } = renderDynamicChoiceFieldStatic(props, environment);
    return /* @__PURE__ */ jsxDEV(Fragment, { children: [
      subTree,
      /* @__PURE__ */ jsxDEV(HasOne, { field: props.field, expectedMutation: "connectOrDisconnect", children: renderedOption }, void 0, false, {
        fileName: "/__w/interface/interface/packages/admin/src/components/bindingFacade/fields/ChoiceField/DynamicSingleChoiceField.tsx",
        lineNumber: 16,
        columnNumber: 6
      }, globalThis)
    ] }, void 0, true, {
      fileName: "/__w/interface/interface/packages/admin/src/components/bindingFacade/fields/ChoiceField/DynamicSingleChoiceField.tsx",
      lineNumber: 14,
      columnNumber: 5
    }, globalThis);
  },
  "DynamicSingleChoiceField"
);
export {
  DynamicSingleChoiceField
};
//# sourceMappingURL=DynamicSingleChoiceField.js.map
