30 lines
716 B
JavaScript
30 lines
716 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,
|
|
selectSearchActivated,
|
|
} from 'selectors/search'
|
|
import DiscoverPage from './view'
|
|
|
|
const select = (state) => ({
|
|
featuredContentByCategory: selectFeaturedContentByCategory(state),
|
|
isSearching: selectIsSearching(state),
|
|
query: selectSearchQuery(state),
|
|
results: selectCurrentSearchResults(state),
|
|
searchActive: selectSearchActivated(state),
|
|
})
|
|
|
|
const perform = (dispatch) => ({
|
|
})
|
|
|
|
export default connect(select, perform)(DiscoverPage)
|