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