import { RootState } from 'store' ; import { Dispatch } from 'redux' ; import * as actions from 'store/results/actions' ; import { ResultsActions } from 'store/results/types' ; export const mapStateToProps = ( { results } ) => { const { resultsHistory , loading } = results ; return { resultsHistory , loading } ; } ; export const mapDispatcherToProps = ( dispatch ) => ( { deleteResultsHistoryElement : ( id ) => dispatch ( actions . deleteResultsHistoryElement ( id ) ) , } ) ;