lbry-desktop/ui/component/channelSelector/index.js

17 lines
539 B
JavaScript
Raw Normal View History

2020-03-18 13:11:37 -04:00
import { connect } from 'react-redux';
2020-03-19 10:38:20 -04:00
import { selectMyChannelClaims } from 'lbry-redux';
import { selectActiveChannelClaim, selectIncognito } from 'redux/selectors/app';
import { doSetActiveChannel, doSetIncognito } from 'redux/actions/app';
import SelectChannel from './view';
2020-03-18 13:11:37 -04:00
const select = state => ({
channels: selectMyChannelClaims(state),
activeChannelClaim: selectActiveChannelClaim(state),
incognito: selectIncognito(state),
2020-03-18 13:11:37 -04:00
});
export default connect(select, {
doSetActiveChannel,
doSetIncognito,
})(SelectChannel);