17 lines
601 B
JavaScript
17 lines
601 B
JavaScript
import { connect } from 'react-redux';
|
|
import SelectChannel from './view';
|
|
import { selectMyChannelClaims, selectFetchingMyChannels } from 'redux/selectors/claims';
|
|
import { selectActiveChannelClaimId } from 'redux/selectors/app';
|
|
import { doSetActiveChannel } from 'redux/actions/app';
|
|
|
|
const select = (state) => ({
|
|
myChannelClaims: selectMyChannelClaims(state),
|
|
fetchingChannels: selectFetchingMyChannels(state),
|
|
activeChannelClaimId: selectActiveChannelClaimId(state),
|
|
});
|
|
|
|
const perform = {
|
|
setActiveChannel: doSetActiveChannel,
|
|
};
|
|
|
|
export default connect(select, perform)(SelectChannel);
|