import { Type } from "@sinclair/typebox";
/*! Upstart.gg - Copyright (C) 2024 Flippable - https://github.com/upstart-gg/upstart/blob/main/LICENSE */
function a(e, s, t) {
  let o = { "ui:field": "enum", "ui:display": t.displayAs || "select" }, { options: r, displayAs: l, ...u } = t;
  return Type.Union(r.map((i) => Type.Literal(typeof i == "string" ? i : i.value, { title: typeof i == "string" ? i : i.title, "ui:icon": typeof i == "string" ? void 0 : i.icon })), { title: e, default: s, ...o, ...u });
}
export {
  a
};
//# sourceMappingURL=chunk-PIG623TZ.js.map
