2020-03-18 13:11:37 -04:00
|
|
|
import { connect } from 'react-redux';
|
2021-10-07 23:47:39 -04:00
|
|
|
import { selectMyChannelClaims } from 'redux/selectors/claims';
|
2021-02-09 11:05:56 -05:00
|
|
|
import { selectActiveChannelClaim, selectIncognito } from 'redux/selectors/app';
|
|
|
|
import { doSetActiveChannel, doSetIncognito } from 'redux/actions/app';
|
2021-07-06 09:29:46 +08:00
|
|
|
import ChannelSelector from './view';
|
2020-03-18 13:11:37 -04:00
|
|
|
|
2021-07-06 09:29:46 +08:00
|
|
|
const select = (state) => ({
|
2020-03-18 13:11:37 -04:00
|
|
|
channels: selectMyChannelClaims(state),
|
2021-02-09 11:05:56 -05:00
|
|
|
activeChannelClaim: selectActiveChannelClaim(state),
|
|
|
|
incognito: selectIncognito(state),
|
2020-03-18 13:11:37 -04:00
|
|
|
});
|
|
|
|
|
2021-02-09 11:05:56 -05:00
|
|
|
export default connect(select, {
|
|
|
|
doSetActiveChannel,
|
|
|
|
doSetIncognito,
|
2021-07-06 09:29:46 +08:00
|
|
|
})(ChannelSelector);
|