mirror of
https://github.com/LBRYFoundation/lbry-desktop.git
synced 2025-08-29 16:31:33 +00:00
19 lines
523 B
JavaScript
19 lines
523 B
JavaScript
import React from 'react';
|
|
import { connect } from 'react-redux';
|
|
import { doFetchFeaturedUris } from 'actions/content';
|
|
import {
|
|
selectFeaturedUris,
|
|
selectFetchingFeaturedUris
|
|
} from 'selectors/content';
|
|
import DiscoverPage from './view';
|
|
|
|
const select = state => ({
|
|
featuredUris: selectFeaturedUris(state),
|
|
fetchingFeaturedUris: selectFetchingFeaturedUris(state)
|
|
});
|
|
|
|
const perform = dispatch => ({
|
|
fetchFeaturedUris: () => dispatch(doFetchFeaturedUris())
|
|
});
|
|
|
|
export default connect(select, perform)(DiscoverPage);
|