2019-08-06 18:57:52 +03:00
|
|
|
import { connect } from 'react-redux';
|
2023-05-23 18:15:17 +03:00
|
|
|
|
2022-02-25 01:34:33 +02:00
|
|
|
import { fetchTrendingHashtags } from 'mastodon/actions/trends';
|
2023-05-23 18:15:17 +03:00
|
|
|
|
2019-08-06 18:57:52 +03:00
|
|
|
import Trends from '../components/trends';
|
|
|
|
|
|
|
|
const mapStateToProps = state => ({
|
2022-02-25 01:34:33 +02:00
|
|
|
trends: state.getIn(['trends', 'tags', 'items']),
|
2019-08-06 18:57:52 +03:00
|
|
|
});
|
|
|
|
|
|
|
|
const mapDispatchToProps = dispatch => ({
|
2022-02-25 01:34:33 +02:00
|
|
|
fetchTrends: () => dispatch(fetchTrendingHashtags()),
|
2019-08-06 18:57:52 +03:00
|
|
|
});
|
|
|
|
|
|
|
|
export default connect(mapStateToProps, mapDispatchToProps)(Trends);
|