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