2020-03-18 13:11:37 -04:00
|
|
|
import { connect } from 'react-redux';
|
2022-01-21 12:38:11 -05:00
|
|
|
import { selectHasChannels, selectFetchingMyChannels } from 'redux/selectors/claims';
|
2021-02-09 11:05:56 -05:00
|
|
|
import { selectActiveChannelClaim } from 'redux/selectors/app';
|
|
|
|
import { doSetActiveChannel } from 'redux/actions/app';
|
2020-03-18 17:14:11 -04:00
|
|
|
import CreatorDashboardPage from './view';
|
2020-03-18 13:11:37 -04:00
|
|
|
|
2021-10-07 23:47:39 -04:00
|
|
|
const select = (state) => ({
|
2022-01-21 12:38:11 -05:00
|
|
|
hasChannels: selectHasChannels(state),
|
2020-03-18 13:11:37 -04:00
|
|
|
fetchingChannels: selectFetchingMyChannels(state),
|
2021-02-09 11:05:56 -05:00
|
|
|
activeChannelClaim: selectActiveChannelClaim(state),
|
2020-03-18 13:11:37 -04:00
|
|
|
});
|
|
|
|
|
2021-02-09 11:05:56 -05:00
|
|
|
export default connect(select, { doSetActiveChannel })(CreatorDashboardPage);
|