import { connect } from 'react-redux' ; import { AppState } from '../index' ; import { NotFoundPage } from '../pages/error/NotFoundPage' ; import { Dispatch } from 'redux' ; const mapStateToProps = ( state ) => ( { message : state . error . errorMessage , } ) ; const mapDispatchToProps = ( dispatch ) => ( { } ) ; export default connect ( mapStateToProps , mapDispatchToProps ) ( NotFoundPage ) ;