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

23 lines
745 B
JavaScript
Raw Normal View History

import * as SETTINGS from 'constants/settings';
2018-03-26 23:32:43 +02:00
import { connect } from 'react-redux';
2019-06-11 20:10:58 +02:00
import { selectSubscriptions } from 'redux/selectors/subscriptions';
import { selectFollowedTags } from 'lbry-redux';
import { selectUserEmail, selectUploadCount } from 'lbryinc';
2018-03-26 23:32:43 +02:00
import SideBar from './view';
2019-06-12 23:51:39 +02:00
import { makeSelectClientSetting } from 'redux/selectors/settings';
2018-03-26 23:32:43 +02:00
const select = state => ({
2019-06-11 20:10:58 +02:00
subscriptions: selectSubscriptions(state),
followedTags: selectFollowedTags(state),
2019-06-12 23:51:39 +02:00
language: makeSelectClientSetting(SETTINGS.LANGUAGE)(state), // trigger redraw on language change
2019-08-21 22:54:44 +02:00
email: selectUserEmail(state),
uploadCount: selectUploadCount(state),
2018-03-26 23:32:43 +02:00
});
2018-06-25 08:07:45 +02:00
const perform = () => ({});
2018-03-26 23:32:43 +02:00
2018-06-25 08:07:45 +02:00
export default connect(
select,
perform
)(SideBar);