13 lines
555 B
JavaScript
13 lines
555 B
JavaScript
import { connect } from 'react-redux';
|
|
import { selectMyChannelClaims, selectFetchingMyChannels } from 'redux/selectors/claims';
|
|
import { selectActiveChannelClaim } from 'redux/selectors/app';
|
|
import { doSetActiveChannel } from 'redux/actions/app';
|
|
import CreatorDashboardPage from './view';
|
|
|
|
const select = (state) => ({
|
|
channels: selectMyChannelClaims(state),
|
|
fetchingChannels: selectFetchingMyChannels(state),
|
|
activeChannelClaim: selectActiveChannelClaim(state),
|
|
});
|
|
|
|
export default connect(select, { doSetActiveChannel })(CreatorDashboardPage);
|