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

20 lines
695 B
JavaScript
Raw Normal View History

2020-01-02 11:30:27 -05:00
import { connect } from 'react-redux';
import { selectFollowedTags } from 'redux/selectors/tags';
import { selectUserVerifiedEmail } from 'redux/selectors/user';
2020-01-02 11:30:27 -05:00
import { selectSubscriptions } from 'redux/selectors/subscriptions';
2021-03-31 16:55:26 -04:00
import { selectShowMatureContent, selectHomepageData } from 'redux/selectors/settings';
2020-10-13 15:26:59 -04:00
2020-01-02 11:30:27 -05:00
import DiscoverPage from './view';
2021-03-31 16:55:26 -04:00
const select = (state) => ({
2020-01-02 11:30:27 -05:00
followedTags: selectFollowedTags(state),
subscribedChannels: selectSubscriptions(state),
2020-01-20 11:47:03 -05:00
authenticated: selectUserVerifiedEmail(state),
2021-03-31 16:55:26 -04:00
showNsfw: selectShowMatureContent(state),
homepageData: selectHomepageData(state),
2020-01-02 11:30:27 -05:00
});
const perform = {};
export default connect(select, perform)(DiscoverPage);