import{p as c,s as m,g as d,q as p,t as b,r as g,j as x,d as y}from"./index-Cziemgsu.js";const f=({label:l,disabled:u,setMember:s,disableReason:r,...n})=>{const{data:o}=c(),t=m(o),{data:e=[],isLoading:i}=d({queryKey:[p.cluster],queryFn:b,enabled:t});return g.useEffect(()=>{e.length>0&&s&&s(e[0].server_name)},[e]),t?x.jsx(y.Select,{...n,label:l??"Cluster member",options:e.map(a=>({label:a.server_name,value:a.server_name})),disabled:u||i||!!r,help:r}):null};export{f as C};
