2017-04-23 11:56:50 +02:00
|
|
|
import React from 'react'
|
|
|
|
import {
|
|
|
|
connect
|
|
|
|
} from 'react-redux'
|
|
|
|
import {
|
|
|
|
selectFeaturedContentByCategory
|
|
|
|
} from 'selectors/content'
|
2017-04-24 16:17:36 +02:00
|
|
|
import {
|
|
|
|
doSearchContent,
|
|
|
|
} from 'actions/search'
|
|
|
|
import {
|
|
|
|
selectIsSearching,
|
|
|
|
selectSearchQuery,
|
|
|
|
selectCurrentSearchResults,
|
|
|
|
} from 'selectors/search'
|
2017-04-23 11:56:50 +02:00
|
|
|
import DiscoverPage from './view'
|
|
|
|
|
|
|
|
const select = (state) => ({
|
|
|
|
featuredContentByCategory: selectFeaturedContentByCategory(state),
|
2017-04-24 16:17:36 +02:00
|
|
|
isSearching: selectIsSearching(state),
|
|
|
|
query: selectSearchQuery(state),
|
|
|
|
results: selectCurrentSearchResults(state),
|
2017-04-23 11:56:50 +02:00
|
|
|
})
|
|
|
|
|
|
|
|
const perform = (dispatch) => ({
|
|
|
|
})
|
|
|
|
|
|
|
|
export default connect(select, perform)(DiscoverPage)
|