You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

14 lines
454 B

7 years ago
7 years ago
7 years ago
  1. import { connect } from 'react-redux';
  2. import SearchResults from '../components/search_results';
  3. import { fetchTrends } from '../../../actions/trends';
  4. const mapStateToProps = state => ({
  5. results: state.getIn(['search', 'results']),
  6. trends: state.getIn(['trends', 'items']),
  7. });
  8. const mapDispatchToProps = dispatch => ({
  9. fetchTrends: () => dispatch(fetchTrends()),
  10. });
  11. export default connect(mapStateToProps, mapDispatchToProps)(SearchResults);