import{j as t}from"./vendor-query-B2UbickB.js";import{j as i,a9 as x}from"./vendor-icons-CrrAvF2g.js";import{c}from"./vendor-react-CXumBFUA.js";function h({name:e,serverId:r,short:a=!0}){const n=c(),s=a?e.replace(/^long-tail-/,""):e;return r?t.jsxs("button",{onClick:o=>{o.stopPropagation(),n(`/mcp/servers/${r}`)},className:"group/srv inline-flex items-center gap-1 text-[11px] font-mono text-text-tertiary hover:text-accent transition-colors",title:e,children:[t.jsx(i,{className:"w-2.5 h-2.5 shrink-0 text-text-quaternary group-hover/srv:text-accent",strokeWidth:1.5}),s,t.jsx(x,{className:"w-2 h-2 shrink-0 invisible group-hover/srv:visible text-accent",strokeWidth:1.5})]}):t.jsxs("span",{className:"inline-flex items-center gap-1 text-[11px] font-mono text-text-tertiary",title:e,children:[t.jsx(i,{className:"w-2.5 h-2.5 shrink-0 text-text-quaternary",strokeWidth:1.5}),s]})}export{h as S};
//# sourceMappingURL=ServerName-Q6okiv4f.js.map
