import { useState } from 'react';
import { OperatorFilterPickerState } from '../state/OperatorFilterPickerState';
import { useFilterToolbarState } from '../providers';
/**
 * Hook to create and manage OperatorFilterPickerState
 */
export function useOperatorFilterState(params) {
    const { filter } = params;
    const toolbar = useFilterToolbarState();
    const [state] = useState(() => new OperatorFilterPickerState({ filter, toolbar }));
    return state;
}
//# sourceMappingURL=useOperatorFilterState.js.map