import { useState as r, useEffect as c } from "react";
function f(e, t) {
  const [u, o] = r(e);
  return c(() => {
    const n = setTimeout(() => o(e), t || 500);
    return () => {
      clearTimeout(n);
    };
  }, [e, t]), u;
}
export {
  f as default
};
//# sourceMappingURL=use-debounce.js.map
