lbry-desktop/ui/page/following/index.js

20 lines
569 B
JavaScript
Raw Normal View History

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),
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);