import{j as l}from"./index-B-YXshIJ.js";const u=({options:a,onChange:s,value:r})=>a.length===0?null:l.jsx("ul",{className:"group p-1 bg-slate-100 hover:bg-slate-200 rounded-lg inline-flex",children:a.map(e=>l.jsx("li",{children:l.jsxs("label",{className:"py-1 px-5 relative rounded-md items-center text-base font-medium inline-block\n            ".concat(e.value===r?"bg-gray-700 text-white group-hover:shadow-sm":"group-hover:bg-gray-200"),children:[l.jsx("input",{type:"radio",name:"switcher",value:e.value,checked:r===e.value,onChange:()=>s(e.value),className:"opacity-0 absolute left-0 w-full h-full top-0 ".concat(e.value===r?"":"cursor-pointer")}),e.label]})},e.value))});export{u as S};
