import { connect , MapStateToPropsParam } from "react-redux" ; import { IntlProvider } from "react-intl" ; const mapStateToProps = ( state ) : any => { const { locale , messages } = state . translations ; return { locale , messages } ; } ; export default connect ( mapStateToProps ) ( IntlProvider ) ;