2019-06-11 20:10:58 +02:00
|
|
|
import { connect } from 'react-redux';
|
|
|
|
import { selectFollowedTags } from 'lbry-redux';
|
2019-07-08 19:06:42 +02:00
|
|
|
import { selectSubscriptions, selectSuggestedChannels } from 'redux/selectors/subscriptions';
|
|
|
|
import { doFetchRecommendedSubscriptions } from 'redux/actions/subscriptions';
|
|
|
|
|
2019-06-11 20:10:58 +02:00
|
|
|
import TagsEdit from './view';
|
|
|
|
|
|
|
|
const select = state => ({
|
|
|
|
followedTags: selectFollowedTags(state),
|
2019-06-28 09:27:55 +02:00
|
|
|
subscribedChannels: selectSubscriptions(state),
|
2019-07-08 19:06:42 +02:00
|
|
|
suggestedSubscriptions: selectSuggestedChannels(state),
|
2019-06-11 20:10:58 +02:00
|
|
|
});
|
|
|
|
|
|
|
|
export default connect(
|
|
|
|
select,
|
2019-07-08 19:06:42 +02:00
|
|
|
{
|
|
|
|
doFetchRecommendedSubscriptions,
|
|
|
|
}
|
2019-06-11 20:10:58 +02:00
|
|
|
)(TagsEdit);
|