0
0
instrumental/app/javascript/mastodon/features/getting_started/containers/trends_container.js

16 lines
487 B
JavaScript
Raw Normal View History

import { connect } from 'react-redux';
import { injectIntl } from 'react-intl';
import { fetchTrends } from '../../../actions/trends';
import Trends from '../components/trends';
const mapStateToProps = state => ({
trends: state.getIn(['trends', 'items']),
loading: state.getIn(['trends', 'isLoading']),
});
const mapDispatchToProps = dispatch => ({
fetchTrends: () => dispatch(fetchTrends()),
});
export default injectIntl(connect(mapStateToProps, mapDispatchToProps)(Trends));