import{c as i}from"./createLucideIcon-DVe2WYpF.js";import{j as a}from"./app-DZfefqwY.js";import{B as s}from"./badge-Ci36sbr-.js";import{c}from"./utils-58Hq6hiM.js";import{C as r,a as d}from"./clock-2VfAipfR.js";import{C as g}from"./circle-check-big-Cr59orY0.js";/**
 * @license lucide-react v0.475.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=[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}],["path",{d:"M8 14h.01",key:"6423bh"}],["path",{d:"M12 14h.01",key:"1etili"}],["path",{d:"M16 14h.01",key:"1gbofw"}],["path",{d:"M8 18h.01",key:"lrp35t"}],["path",{d:"M12 18h.01",key:"mhygvu"}],["path",{d:"M16 18h.01",key:"kzsmim"}]],M=i("CalendarDays",b),o={menunggu:{label:"Menunggu",icon:d,color:"text-yellow-500",bg:"bg-yellow-50",border:"border-yellow-100",text:"text-yellow-600"},disetujui:{label:"Disetujui",icon:g,color:"text-green-500",bg:"bg-green-50",border:"border-green-100",text:"text-green-600"},ditolak:{label:"Ditolak",icon:r,color:"text-red-500",bg:"bg-red-50",border:"border-red-100",text:"text-red-600"},dibatalkan:{label:"Dibatalkan",icon:r,color:"text-gray-500",bg:"bg-gray-50",border:"border-gray-100",text:"text-gray-600"}},f=({status:t,className:n})=>{const l=typeof t=="number"?{0:"menunggu",1:"disetujui",[-1]:"ditolak",[-2]:"dibatalkan"}[t]||"menunggu":t,e=o[l]||o.menunggu;return a.jsxs(s,{variant:"outline",className:c(`flex items-center gap-1 px-3 py-1 ${e.bg} ${e.text} ${e.border}`,n),children:[a.jsx(e.icon,{className:e.color,size:16}),a.jsx("span",{className:"capitalize",children:e.label})]})};export{M as C,f as S};
