2019-09-26 18:28:08 +02:00
|
|
|
import { connect } from 'react-redux';
|
|
|
|
import { selectMyChannelClaims, doFetchChannelListMine, selectFetchingMyChannels } from 'lbry-redux';
|
|
|
|
import { selectYoutubeChannels } from 'lbryinc';
|
2019-12-06 20:42:44 +01:00
|
|
|
import { doOpenModal } from 'redux/actions/app';
|
2019-09-26 18:28:08 +02:00
|
|
|
import ChannelsPage from './view';
|
|
|
|
|
|
|
|
const select = state => ({
|
|
|
|
channels: selectMyChannelClaims(state),
|
|
|
|
fetchingChannels: selectFetchingMyChannels(state),
|
|
|
|
youtubeChannels: selectYoutubeChannels(state),
|
|
|
|
});
|
|
|
|
|
|
|
|
const perform = dispatch => ({
|
2019-12-06 20:42:44 +01:00
|
|
|
openModal: id => dispatch(doOpenModal(id)),
|
2019-09-26 18:28:08 +02:00
|
|
|
fetchChannelListMine: () => dispatch(doFetchChannelListMine()),
|
|
|
|
});
|
|
|
|
|
|
|
|
export default connect(
|
|
|
|
select,
|
|
|
|
perform
|
|
|
|
)(ChannelsPage);
|