lbry-desktop/src/renderer/page/discover/index.js
2017-12-04 17:12:59 -03:00

19 lines
543 B
JavaScript

import React from "react";
import { connect } from "react-redux";
import { doFetchFeaturedUris } 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()),
});
export default connect(select, perform)(DiscoverPage);