import{j as s}from"./router.chunk.YsRm4bSN.js";import{ad as a,ae as e,af as i,c as l,bE as n,ag as c,bF as d,i as r}from"./main.chunk.N-eZ2ybB.js";const o=({children:o,options:t,className:h,onOptionSelect:m,ref:j,...u})=>0===t.filter(s=>!s.hidden).length?null:s.jsxs(a,{children:[s.jsx(e,{asChild:!0,children:o}),s.jsx(i,{...u,ref:j,className:l(h),children:s.jsx(n,{children:t.map(a=>{const e=a.icon??null;return!a.hidden&&s.jsxs(c,{onClick:()=>{r(a.disabled)&&a.disabled||m?.(a.value)},className:l(a.is_critical&&"growfund-text-fg-critical"),disabled:a.disabled??!1,children:[e&&s.jsx(e,{}),a.label,a.command&&s.jsx(d,{children:a.command})]},String(a.value))})})})]});export{o as T};
