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