2020-01-02 17:30:27 +01:00
|
|
|
import { connect } from 'react-redux';
|
2020-02-18 16:26:58 +01:00
|
|
|
import { selectFollowedTags } from 'lbry-redux';
|
2020-01-02 17:30:27 +01:00
|
|
|
import { selectSubscriptions, selectSuggestedChannels } from 'redux/selectors/subscriptions';
|
|
|
|
import { doFetchRecommendedSubscriptions } from 'redux/actions/subscriptions';
|
|
|
|
import ChannelsFollowingManagePage from './view';
|
|
|
|
|
|
|
|
const select = state => ({
|
2020-02-18 16:26:58 +01:00
|
|
|
followedTags: selectFollowedTags(state),
|
2020-01-02 17:30:27 +01:00
|
|
|
subscribedChannels: selectSubscriptions(state),
|
|
|
|
suggestedSubscriptions: selectSuggestedChannels(state),
|
|
|
|
});
|
|
|
|
|
|
|
|
export default connect(
|
|
|
|
select,
|
|
|
|
{
|
|
|
|
doFetchRecommendedSubscriptions,
|
|
|
|
}
|
|
|
|
)(ChannelsFollowingManagePage);
|