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

25 lines
740 B
JavaScript
Raw Normal View History

import { connect } from 'react-redux';
2020-06-19 18:26:52 +02:00
import {
selectMyChannelClaims,
selectMyChannelUrls,
doFetchChannelListMine,
selectFetchingMyChannels,
} from 'lbry-redux';
import { selectYoutubeChannels } from 'redux/selectors/user';
2019-12-06 20:42:44 +01:00
import { doOpenModal } from 'redux/actions/app';
import ChannelsPage from './view';
const select = state => ({
2020-06-19 18:26:52 +02:00
channelUrls: selectMyChannelUrls(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)),
fetchChannelListMine: () => dispatch(doFetchChannelListMine()),
});
export default connect(select, perform)(ChannelsPage);