18 lines
571 B
JavaScript
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);
|