lbry-desktop/ui/component/userChannelFollowIntro/index.js

19 lines
673 B
JavaScript
Raw Normal View History

2020-02-26 19:39:03 +01:00
import { connect } from 'react-redux';
import { selectFollowedTags } from 'redux/selectors/tags';
2020-02-26 19:39:03 +01:00
import { selectSubscriptions } from 'redux/selectors/subscriptions';
import { doChannelSubscribe } from 'redux/actions/subscriptions';
2020-02-26 19:39:03 +01:00
import UserChannelFollowIntro from './view';
import { selectHomepageData } from 'redux/selectors/settings';
2020-02-26 19:39:03 +01:00
const select = state => ({
followedTags: selectFollowedTags(state),
subscribedChannels: selectSubscriptions(state),
homepageData: selectHomepageData(state),
2020-02-26 19:39:03 +01:00
});
const perform = dispatch => ({
channelSubscribe: uri => dispatch(doChannelSubscribe(uri)),
});
export default connect(select, perform)(UserChannelFollowIntro);