import { useDispatch } from 'react-redux' ; import { bindActionCreators } from 'redux' ; import { CombinedActionCreators , CombinedActionsType , } from '../store/action-creators' ; function Combine returns export const useActions = ( ) : CombinedActionsType => { const dispatch = useDispatch ( ) ; return bindActionCreators ( CombinedActionCreators , dispatch ) ; } ;