import { MapStateToPropsParam , MapDispatchToPropsParam , connect } from "react-redux" ; import { Dispatch , bindActionCreators , Action } from "redux" ; import actions from "../actions" ; import ActionCreator from "../models/client/ActionCreator" ; import { injectIntl } from "react-intl" ; import { withRouter } from "react-router" ; const mapStateToProps = ( state ) : any => { return { state } ; } ; const mapDispatchToProps = ( dispatch ) : any => { return { actions : bindActionCreators ( actions as any , dispatch ) } ; } ; const mergeProps = ( stateProps , dispatchProps , ownProps ) => { return { ... stateProps , ... dispatchProps , ... ownProps } ; } ; param Component export default function connectAllProps ( Component ) { return injectIntl ( withRouter ( connect ( mapStateToProps , mapDispatchToProps , mergeProps ) ( Component ) ) ) ; }