2019-08-06 10:57:52 -05:00
|
|
|
import { connect } from 'react-redux';
|
2020-05-28 07:11:38 -05:00
|
|
|
import { fetchTrends } from 'flavours/glitch/actions/trends';
|
2019-08-06 10:57:52 -05:00
|
|
|
import Trends from '../components/trends';
|
|
|
|
|
|
|
|
const mapStateToProps = state => ({
|
|
|
|
trends: state.getIn(['trends', 'items']),
|
|
|
|
});
|
|
|
|
|
|
|
|
const mapDispatchToProps = dispatch => ({
|
|
|
|
fetchTrends: () => dispatch(fetchTrends()),
|
|
|
|
});
|
|
|
|
|
|
|
|
export default connect(mapStateToProps, mapDispatchToProps)(Trends);
|