import { useEffect, useState } from "react";
function useDebounce(value, delay) {
  var [debouncedValue, setDebouncedValue] = useState(value);
  return useEffect(function () {
    var handler = setTimeout(function () {
      setDebouncedValue(value);
    }, delay);
    return function () {
      clearTimeout(handler);
    };
  }, [value, delay]), debouncedValue;
}
export { useDebounce };
//# sourceMappingURL=useDebounce.native.js.map
