You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

10 lines
432 B

import { StoreState } from 'app/types';
import { useSelector } from 'react-redux';
import { UnifiedAlertingState } from '../state/reducers';
export function useUnifiedAlertingSelector<TSelected = unknown>(
selector: (state: UnifiedAlertingState) => TSelected,
equalityFn?: (left: TSelected, right: TSelected) => boolean
): TSelected {
return useSelector((state: StoreState) => selector(state.unifiedAlerting), equalityFn);
}