import{j as n,B as o,T as c}from"./index-4dfc510b.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";default:return"success.main"}},s=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)";default:return"rgba(76, 175, 80, 0.08)"}},a=e=>{switch(e){case"Approved":return"success";case"Pending":return"warning";case"Rejected":return"error";case"Closed":return"primary";default:return"success"}};return n.jsx(o,{sx:{width:100,minWidth:100,border:1,borderRadius:20,px:1,py:.5,textAlign:"center",display:"flex",justifyContent:"center",alignItems:"center",mx:"auto",borderColor:t(r),backgroundColor:s(r)},children:n.jsxs(c,{variant:"body2",color:a(r),sx:{display:"flex",alignItems:"center",gap:.5,fontWeight:500},children:["● ",r||"None"]})})};export{d as S};
