2021-03-02 03:07:10 +01:00
|
|
|
import { connect } from 'react-redux';
|
|
|
|
import { selectMyChannelClaims, selectFetchingMyChannels } from 'lbry-redux';
|
|
|
|
import { selectActiveChannelClaim } from 'redux/selectors/app';
|
|
|
|
import { doSetActiveChannel } from 'redux/actions/app';
|
|
|
|
import CreatorDashboardPage from './view';
|
|
|
|
|
2021-03-10 19:34:21 +01:00
|
|
|
const select = (state) => ({
|
2021-03-02 03:07:10 +01:00
|
|
|
channels: selectMyChannelClaims(state),
|
|
|
|
fetchingChannels: selectFetchingMyChannels(state),
|
|
|
|
activeChannelClaim: selectActiveChannelClaim(state),
|
|
|
|
});
|
|
|
|
|
|
|
|
export default connect(select, { doSetActiveChannel })(CreatorDashboardPage);
|