lbry-desktop/ui/js/page/discover/index.js
2017-05-04 11:59:45 -04:00

28 lines
645 B
JavaScript

import React from 'react'
import {
connect
} from 'react-redux'
import {
selectFeaturedContentByCategory
} from 'selectors/content'
import {
doSearchContent,
} from 'actions/search'
import {
selectIsSearching,
selectSearchQuery,
selectCurrentSearchResults,
} from 'selectors/search'
import DiscoverPage from './view'
const select = (state) => ({
featuredContentByCategory: selectFeaturedContentByCategory(state),
isSearching: selectIsSearching(state),
query: selectSearchQuery(state),
results: selectCurrentSearchResults(state),
})
const perform = (dispatch) => ({
})
export default connect(select, perform)(DiscoverPage)