import { createElement } from "react";
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__ */ createElement(StaticSingleChoiceField, {
    ...props
  }) : /* @__PURE__ */ createElement(DynamicSingleChoiceField, {
    ...props
  });
}, "ChoiceField");
export { ChoiceField };
//# sourceMappingURL=ChoiceField.js.map
