import{j as a,$ as s,b8 as n,cL as e}from"./index-46ma1THH.js";const I=({status:r,...t})=>a.jsx(s,{...t,sx:{gap:"10px"},children:a.jsx(n,{variant:c(r),mode:o(r),loading:!i(r),value:r.toLocaleLowerCase()})}),c=r=>{switch(r){case e.CREATING:return"light";case e.CREATED:return"light";case e.RUNNING:case e.STARTING:case e.IDLE:return"success";case e.UPDATING:return"notice";case e.FAILED:return"fail";case e.STOPPING:case e.STOPPED:return"label";default:return"default"}},o=r=>r===e.IDLE?"bordered":"default",i=r=>r!==e.CREATING&&r!==e.STARTING&&r!==e.UPDATING&&r!==e.STOPPING;export{I as S};
