"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var o=require("react");function s(e,t){const[c,u]=o.useState(e);return o.useEffect(()=>{const n=setTimeout(()=>{u(e)},t);return()=>{clearTimeout(n)}},[e]),c}const i=s;function d(e,t,c){let u;function n(...r){u&&clearTimeout(u),u=setTimeout(()=>e(...r),t)}return n}exports.useDebounce=i;exports.useDebouncedFn=d;exports.useDebouncedValue=s;
