import{aT as t,aq as f}from"./app-BgLa5dit.js";const T=5e3;function l(o,u=T,r=!0){const[n,s]=t.useState(!1),e=t.useRef(null),i=()=>{s(c=>!c),r&&(e.current=window.setTimeout(i,u))};return t.useEffect(()=>(r&&(e.current=window.setTimeout(i,u)),()=>{e.current&&window.clearTimeout(e.current)}),[r]),t.useEffect(()=>{f.isFunction(o)&&o()},[n]),()=>window.clearTimeout(e.current)}export{l as u};
//# sourceMappingURL=BchTdWrs.chunk.js.map
