mirror of
https://github.com/LBRYFoundation/lbry-desktop.git
synced 2025-09-01 17:55:11 +00:00
19 lines
607 B
JavaScript
19 lines
607 B
JavaScript
import { connect } from 'react-redux';
|
|
import { doFetchFeaturedUris, doFetchRewardedContent } from 'redux/actions/content';
|
|
import { selectFeaturedUris, selectFetchingFeaturedUris } from 'redux/selectors/content';
|
|
import DiscoverPage from './view';
|
|
|
|
const select = state => ({
|
|
featuredUris: selectFeaturedUris(state),
|
|
fetchingFeaturedUris: selectFetchingFeaturedUris(state),
|
|
});
|
|
|
|
const perform = dispatch => ({
|
|
fetchFeaturedUris: () => dispatch(doFetchFeaturedUris()),
|
|
fetchRewardedContent: () => dispatch(doFetchRewardedContent()),
|
|
});
|
|
|
|
export default connect(
|
|
select,
|
|
perform
|
|
)(DiscoverPage);
|