import { useRef as u, useCallback as n } from "react";
const d = (e, c = 10) => {
  const o = u();
  return n(
    (...r) => {
      clearTimeout(o.current), o.current = setTimeout(() => e.apply(void 0, r), c);
    },
    [e, c]
  );
};
export {
  d as useDebounce
};
//# sourceMappingURL=useDebounce.es.js.map
