import{j as n}from"./index-CnhUkfW3.js";function l(e){var t,a,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var s=e.length;for(t=0;t<s;t++)e[t]&&(a=l(e[t]))&&(r&&(r+=" "),r+=a)}else for(a in e)e[a]&&(r&&(r+=" "),r+=a);return r}function d(){for(var e,t,a=0,r="",s=arguments.length;a<s;a++)(e=arguments[a])&&(t=l(e))&&(r&&(r+=" "),r+=t);return r}const o={active:"bg-emerald-500/20 text-emerald-200 border-emerald-400/40",idle:"bg-slate-500/20 text-slate-200 border-slate-400/40",error:"bg-rose-500/20 text-rose-200 border-rose-400/40",offline:"bg-amber-500/20 text-amber-200 border-amber-400/40",running:"bg-cyan-500/20 text-cyan-200 border-cyan-400/40",pending:"bg-slate-500/20 text-slate-200 border-slate-400/40",done:"bg-emerald-500/20 text-emerald-200 border-emerald-400/40",blocked:"bg-rose-500/20 text-rose-200 border-rose-400/40"};function i({label:e,status:t}){return n.jsxs("span",{className:d("inline-flex items-center gap-2 rounded-full border px-3 py-1 text-xs uppercase tracking-[0.2em]",o[t]||o.idle),children:[n.jsx("span",{className:"h-2 w-2 rounded-full bg-current"}),e]})}export{i as S};
