import{j as n,B as c,T as o}from"./index-6f149d0c.js";const d=({status:r})=>{const t=e=>{switch(e){case"Approved":return"success.main";case"Pending":return"warning.main";case"Rejected":return"error.main";case"Closed":return"primary.main";case"Draft":return"warning.main";default:return"success.main"}},a=e=>{switch(e){case"Approved":return"rgba(76, 175, 80, 0.08)";case"Pending":return"rgba(255, 152, 0, 0.08)";case"Rejected":return"rgba(244, 67, 54, 0.08)";case"Closed":return"rgba(158, 158, 158, 0.08)";case"Draft":return"rgba(255, 152, 0, 0.08)";default:return"rgba(76, 175, 80, 0.08)"}},s=e=>{switch(e){case"Approved":return"success";case"Pending":return"warning";case"Rejected":return"error";case"Closed":return"primary";case"Draft":return"warning";default:return"success"}};return n.jsx(c,{sx:{width:"fit-content",maxWidth:150,border:1,borderRadius:20,px:1,py:.5,textAlign:"center",display:"flex",justifyContent:"center",alignItems:"center",borderColor:t(r),backgroundColor:a(r)},children:n.jsxs(o,{variant:"body2",color:s(r),sx:{display:"flex",alignItems:"center",gap:.5,fontWeight:500,wordBreak:"break-word",whiteSpace:"normal",textAlign:"center"},children:["● ",r||"None"]})})};export{d as S};
