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