mirror of
https://framagit.org/tykayn/mastodon.git
synced 2023-08-25 08:33:12 +02:00
14 lines
392 B
JavaScript
14 lines
392 B
JavaScript
import { connect } from 'react-redux';
|
|
import { fetchTrends } from 'flavours/glitch/actions/trends';
|
|
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);
|