import{j as t}from"./query-PJ0ZdjbV.js";import{a2 as n,aT as c,C as g,ap as i}from"./index-BSPIaiZU.js";import{C as r}from"./circle-alert-9pjtMKqA.js";import{S as p}from"./send-hExJQKXK.js";/**
 * @license lucide-react v0.469.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const f=n("Hourglass",[["path",{d:"M5 22h14",key:"ehvnwv"}],["path",{d:"M5 2h14",key:"pdyrp9"}],["path",{d:"M17 22v-4.172a2 2 0 0 0-.586-1.414L12 12l-4.414 4.414A2 2 0 0 0 7 17.828V22",key:"1d314k"}],["path",{d:"M7 2v4.172a2 2 0 0 0 .586 1.414L12 12l4.414-4.414A2 2 0 0 0 17 6.172V2",key:"1vvvr6"}]]);/**
 * @license lucide-react v0.469.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const b=n("Pause",[["rect",{x:"14",y:"4",width:"4",height:"16",rx:"1",key:"zuxfzm"}],["rect",{x:"6",y:"4",width:"4",height:"16",rx:"1",key:"1okwgv"}]]),d={pending:{label:"Pending",bg:"bg-[#f1f5f9]",fg:"text-[#475569]",icon:f},in_progress:{label:"In progress",bg:"bg-[#f0fdfa]",fg:"text-[#0f766e]",icon:p},approved:{label:"Approved",bg:"bg-[rgba(22,163,74,0.12)]",fg:"text-[#15803d]",icon:g},rejected:{label:"Rejected",bg:"bg-[rgba(244,63,94,0.12)]",fg:"text-[#f43f5e]",icon:c},cancelled:{label:"Cancelled",bg:"bg-[#f1f5f9]",fg:"text-[#94a3b8]",icon:b},expired:{label:"Expired",bg:"bg-[rgba(251,191,36,0.18)]",fg:"text-[#92400e]",icon:r},returned:{label:"Sent back",bg:"bg-[rgba(251,191,36,0.18)]",fg:"text-[#92400e]",icon:r}};function k({status:a,showIcon:l=!0,className:o}){const e=d[a];if(!e)return t.jsx("span",{className:"inline-flex items-center rounded-full bg-[#f1f5f9] px-2 py-0.5 text-[10.5px] font-bold uppercase tracking-[0.04em] text-[#475569]",children:a});const s=e.icon;return t.jsxs("span",{className:i("inline-flex h-[22px] items-center gap-1 rounded-full px-2.5 text-[10.5px] font-bold uppercase tracking-[0.04em]",e.bg,e.fg,o),children:[l&&t.jsx(s,{className:"h-3 w-3",strokeWidth:2.5}),e.label]})}export{k as A};
