import{j as s}from"./vendor-react-wBh_31cN.js";import{B as o}from"./badge-UCnweWGd.js";import{S as c,d as i}from"./index-dNe6i2rS.js";import{c as e}from"./index-_Tes9c9v.js";const I=({status:r,className:a,...n})=>{const t=u(r);return s.jsx("div",{className:i("flex gap-2.5",a),...n,children:s.jsxs(o,{variant:m(r),children:[t&&s.jsx(c,{size:"sm"}),r.toLocaleLowerCase()]})})},m=r=>{switch(r){case e.CREATING:case e.CREATED:return"secondary";case e.RUNNING:case e.STARTING:return"success";case e.IDLE:return"outline";case e.UPDATING:return"notice";case e.FAILED:return"fail";case e.STOPPING:case e.STOPPED:return"outline";default:return"default"}},u=r=>r===e.CREATING||r===e.STARTING||r===e.UPDATING||r===e.STOPPING;export{I as S};
