import{j as t}from"./index-B1SopS7p.js";const c=({variant:a="light",color:s="primary",size:i="md",startIcon:e,endIcon:r,children:g})=>{const x="inline-flex items-center px-2.5 py-0.5 justify-center gap-1 rounded-full font-medium",d={sm:"text-theme-xs",md:"text-sm"},n={light:{primary:"bg-brand-50 text-brand-500 dark:bg-brand-500/15 dark:text-brand-400",success:"bg-success-50 text-success-600 dark:bg-success-500/15 dark:text-success-500",error:"bg-error-50 text-error-600 dark:bg-error-500/15 dark:text-error-500",warning:"bg-warning-50 text-warning-600 dark:bg-warning-500/15 dark:text-orange-400",info:"bg-blue-light-50 text-blue-light-500 dark:bg-blue-light-500/15 dark:text-blue-light-500",light:"bg-gray-100 text-gray-700 dark:bg-white/5 dark:text-white/80",dark:"bg-gray-500 text-white dark:bg-white/5 dark:text-white"},solid:{primary:"bg-brand-500 text-white dark:text-white",success:"bg-success-500 text-white dark:text-white",error:"bg-error-500 text-white dark:text-white",warning:"bg-warning-500 text-white dark:text-white",info:"bg-blue-light-500 text-white dark:text-white",light:"bg-gray-400 dark:bg-white/5 text-white dark:text-white/80",dark:"bg-gray-700 text-white dark:text-white"}},b=d[i],h=n[a][s];return t.jsxs("span",{className:`${x} ${b} ${h}`,children:[e&&t.jsx("span",{className:"mr-1",children:e}),g,r&&t.jsx("span",{className:"ml-1",children:r})]})};export{c as B};
