lbry-desktop/ui/page/home/index.js

21 lines
763 B
JavaScript
Raw Normal View History

2020-10-13 21:26:59 +02:00
import * as SETTINGS from 'constants/settings';
2020-01-02 17:30:27 +01:00
import { connect } from 'react-redux';
import { selectFollowedTags } from 'redux/selectors/tags';
import { selectUserVerifiedEmail } from 'redux/selectors/user';
2020-01-02 17:30:27 +01:00
import { selectSubscriptions } from 'redux/selectors/subscriptions';
2020-11-09 01:26:42 +01:00
import { makeSelectClientSetting, selectHomepageData } from 'redux/selectors/settings';
2020-10-13 21:26:59 +02:00
2020-01-02 17:30:27 +01:00
import DiscoverPage from './view';
const select = state => ({
followedTags: selectFollowedTags(state),
subscribedChannels: selectSubscriptions(state),
2020-01-20 17:47:03 +01:00
authenticated: selectUserVerifiedEmail(state),
2020-10-13 21:26:59 +02:00
showNsfw: makeSelectClientSetting(SETTINGS.SHOW_MATURE)(state),
2020-11-09 01:26:42 +01:00
homepageData: selectHomepageData(state),
2020-01-02 17:30:27 +01:00
});
const perform = {};
export default connect(select, perform)(DiscoverPage);