import { Component } from "@contember/binding";
import { StaticSingleChoiceField } from "./StaticSingleChoiceField.js";
import { DynamicSingleChoiceField } from "./DynamicSingleChoiceField.js";
import { jsxDEV } from "react/jsx-dev-runtime";
var _jsxFileName = "/__w/interface/interface/packages/admin/src/components/bindingFacade/fields/ChoiceField/ChoiceField.tsx";
const isStatic = (props) => Array.isArray(props.options);
const ChoiceField = Component((props) => {
  return isStatic(props) ? /* @__PURE__ */ jsxDEV(StaticSingleChoiceField, {
    ...props
  }, void 0, false, {
    fileName: _jsxFileName,
    lineNumber: 23,
    columnNumber: 5
  }, void 0) : /* @__PURE__ */ jsxDEV(DynamicSingleChoiceField, {
    ...props
  }, void 0, false, {
    fileName: _jsxFileName,
    lineNumber: 24,
    columnNumber: 5
  }, void 0);
}, "ChoiceField");
export {
  ChoiceField
};
//# sourceMappingURL=ChoiceField.js.map
