import { useState } from 'react';
import { useThrottledCallback } from '../useThrottledCallback/index.js';
export function useThrottledState(initialState, delay, noTrailing = false) {
    const [state, setState] = useState(initialState);
    return [state, useThrottledCallback(setState, [], delay, noTrailing)];
}
