lbry-desktop/src/ui/component/sideBar/index.js
2019-06-17 16:32:38 -04:00

18 lines
571 B
JavaScript

import { connect } from 'react-redux';
import { selectSubscriptions } from 'redux/selectors/subscriptions';
import { selectFollowedTags, SETTINGS } from 'lbry-redux';
import SideBar from './view';
import { makeSelectClientSetting } from 'redux/selectors/settings';
const select = state => ({
subscriptions: selectSubscriptions(state),
followedTags: selectFollowedTags(state),
language: makeSelectClientSetting(SETTINGS.LANGUAGE)(state), // trigger redraw on language change
});
const perform = () => ({});
export default connect(
select,
perform
)(SideBar);