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

17 lines
557 B
JavaScript
Raw Permalink Normal View History

2020-03-18 18:11:37 +01:00
import { connect } from 'react-redux';
import { selectMyChannelClaims } from 'redux/selectors/claims';
import { selectActiveChannelClaim, selectIncognito } from 'redux/selectors/app';
import { doSetActiveChannel, doSetIncognito } from 'redux/actions/app';
import ChannelSelector from './view';
2020-03-18 18:11:37 +01:00
const select = (state) => ({
2020-03-18 18:11:37 +01:00
channels: selectMyChannelClaims(state),
activeChannelClaim: selectActiveChannelClaim(state),
incognito: selectIncognito(state),
2020-03-18 18:11:37 +01:00
});
export default connect(select, {
doSetActiveChannel,
doSetIncognito,
})(ChannelSelector);