2019-09-23 19:18:32 -04:00
|
|
|
import * as SETTINGS from 'constants/settings';
|
2018-03-26 14:32:43 -07:00
|
|
|
import { connect } from 'react-redux';
|
2019-06-11 14:10:58 -04:00
|
|
|
import { selectSubscriptions } from 'redux/selectors/subscriptions';
|
2020-05-21 11:38:28 -04:00
|
|
|
import { selectFollowedTags, selectPurchaseUriSuccess, doClearPurchasedUriSuccess } from 'lbry-redux';
|
2020-06-15 16:33:03 -04:00
|
|
|
import { selectUploadCount } from 'lbryinc';
|
|
|
|
import { selectUserVerifiedEmail } from 'redux/selectors/user';
|
2019-06-12 17:51:39 -04:00
|
|
|
import { makeSelectClientSetting } from 'redux/selectors/settings';
|
2019-12-18 00:27:08 -05:00
|
|
|
import { doSignOut } from 'redux/actions/app';
|
|
|
|
import SideNavigation from './view';
|
2018-03-26 14:32:43 -07:00
|
|
|
|
|
|
|
const select = state => ({
|
2019-06-11 14:10:58 -04:00
|
|
|
subscriptions: selectSubscriptions(state),
|
|
|
|
followedTags: selectFollowedTags(state),
|
2019-06-12 17:51:39 -04:00
|
|
|
language: makeSelectClientSetting(SETTINGS.LANGUAGE)(state), // trigger redraw on language change
|
2019-10-10 20:37:18 -04:00
|
|
|
uploadCount: selectUploadCount(state),
|
2019-12-18 00:27:08 -05:00
|
|
|
email: selectUserVerifiedEmail(state),
|
2020-05-21 11:38:28 -04:00
|
|
|
purchaseSuccess: selectPurchaseUriSuccess(state),
|
2018-03-26 14:32:43 -07:00
|
|
|
});
|
|
|
|
|
2020-05-21 11:38:28 -04:00
|
|
|
export default connect(select, {
|
|
|
|
doSignOut,
|
|
|
|
doClearPurchasedUriSuccess,
|
|
|
|
})(SideNavigation);
|