import { ActionFn } from "@bodynarf/utils"; /** * Get debounced handler * @param handler Action to handle * @param debounceTime Amount of seconds to stay inactive * @returns Pair: current state, is in debounce state; handler with debounce * @example * ``` * const [debounce, onReloadClick] = useDebounceHandler(reloadData, 3); * *