import { useRef as u, useCallback as t } from "react";
const m = 500, T = () => {
  const e = u(), r = t(() => {
    clearTimeout(e.current);
  }, []), s = t((c, o = m) => {
    e.current = setTimeout(c, o);
  }, []);
  return {
    clearTimer: r,
    setTimer: s
  };
};
export {
  T as default
};
//# sourceMappingURL=index.es12.js.map
