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