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