2019-08-06 17:57:52 +02:00
|
|
|
import { connect } from 'react-redux';
|
2020-01-23 22:00:13 +01:00
|
|
|
import { fetchTrends } from 'mastodon/actions/trends';
|
2019-08-06 17:57:52 +02: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);
|