how to send state in maptoprops code example
Example: redux connect
//Connects your component to Redux-store
export default connect(mapState, mapDispatch)(Component)
//Connects your component to Redux-store
export default connect(mapState, mapDispatch)(Component)