import { connect , MapStateToProps , MapDispatchToPropsFunction , } from 'react-redux' ; import MessageStack from './index' ; import { StateProps , OwnProps } from './props' ; const mapStateToProps = ( state ) : StateProps => { return { messages : [ { id : 'update-status' , text : 'App is updating...' } , ] , } ; } ; export default connect ( mapStateToProps ) ( MessageStack ) ;