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