2019-09-26 12:28:08 -04:00
|
|
|
import { connect } from 'react-redux';
|
2020-06-19 13:10:34 -04:00
|
|
|
import { selectMyChannelClaims, doFetchChannelListMine, selectFetchingMyChannels } from 'lbry-redux';
|
2020-06-15 16:33:03 -04:00
|
|
|
import { selectYoutubeChannels } from 'redux/selectors/user';
|
2019-12-06 14:42:44 -05:00
|
|
|
import { doOpenModal } from 'redux/actions/app';
|
2019-09-26 12:28:08 -04:00
|
|
|
import ChannelsPage from './view';
|
|
|
|
|
|
|
|
const select = state => ({
|
|
|
|
channels: selectMyChannelClaims(state),
|
|
|
|
fetchingChannels: selectFetchingMyChannels(state),
|
|
|
|
youtubeChannels: selectYoutubeChannels(state),
|
|
|
|
});
|
|
|
|
|
|
|
|
const perform = dispatch => ({
|
2019-12-06 14:42:44 -05:00
|
|
|
openModal: id => dispatch(doOpenModal(id)),
|
2019-09-26 12:28:08 -04:00
|
|
|
fetchChannelListMine: () => dispatch(doFetchChannelListMine()),
|
|
|
|
});
|
|
|
|
|
2020-06-15 16:33:03 -04:00
|
|
|
export default connect(select, perform)(ChannelsPage);
|