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