import{j as a}from"./app-C417rstp.js";import{m as o}from"./proxy-Bepa3l_N.js";function c({labs:s,current:l,onChange:i}){return s.length?a.jsx("div",{className:"sticky top-0 z-20 bg-white/80 backdrop-blur-lg border-b border-gray-200 shadow-sm",children:a.jsx("div",{className:"mx-auto max-w-7xl px-4 sm:px-6 lg:px-8",children:a.jsx("div",{className:"flex gap-3 overflow-x-auto no-scrollbar py-4",role:"tablist",children:s.map((t,r)=>{const e=r===l;return a.jsxs(o.button,{whileHover:{scale:e?1:1.05,y:-2},whileTap:{scale:.95},role:"tab","aria-selected":e,onClick:()=>i(r),className:classNames("relative shrink-0 rounded-xl px-6 py-3 text-sm font-semibold transition-all duration-300",e?classNames("bg-gradient-to-r text-white shadow-lg",GRADIENT_PS):"bg-gray-100 text-gray-600 hover:bg-gray-200 hover:text-gray-900"),children:[e&&a.jsx(o.div,{layoutId:"activeTab",className:"absolute inset-0 rounded-xl",style:{background:"linear-gradient(to right, var(--tw-gradient-stops))"},transition:{type:"spring",stiffness:300,damping:30}}),a.jsx("span",{className:"relative z-10",children:t.nombre??"Laboratorio"})]},t.id??t.slug??r)})})})}):null}export{c as default};
