import{b as e}from"./recharts-bmHCCfxU.js";import{j as t}from"./index-DItyo5Xo.js";function o(t,o){const[s,r]=e.useState(t);return e.useEffect(()=>{const e=setTimeout(()=>r(t),o);return()=>clearTimeout(e)},[t,o]),s}const s=e.memo(function({ranges:e,selectedIndex:o,onSelect:s}){return t.jsx("div",{className:"toggle-group flex-shrink-0 overflow-x-auto",children:e.map((e,r)=>t.jsx("button",{onClick:()=>s(r),className:"toggle-group-item "+(o===r?"active":""),children:e.label},e.label))})});export{s as T,o as u};
