File size: 430 Bytes
f5071ca
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
import { connect } from 'react-redux';
import SearchForm from './search_form';
import {receiveSearch } from '../../actions/search_actions';
import { withRouter } from 'react-router-dom';


const msp = (state,ownProps) => ({
  search: state.ui.search
})

const mdp = dispatch => {
    return ({
        receiveSearch: (search) => dispatch(receiveSearch(search))
    });
}


export default withRouter(connect(msp, mdp)(SearchForm));