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