lbry-desktop/ui/js/page/search/index.js

25 lines
498 B
JavaScript
Raw Normal View History

2017-05-05 10:01:16 +02:00
import React from 'react'
import {
connect,
} from 'react-redux'
import {
selectIsSearching,
selectSearchQuery,
2017-05-05 10:01:16 +02:00
selectCurrentSearchResults,
} from 'selectors/search'
import {
doNavigate,
} from 'actions/app'
import SearchPage from './view'
const select = (state) => ({
isSearching: selectIsSearching(state),
2017-05-12 01:28:43 +02:00
query: selectSearchQuery(state)
2017-05-05 10:01:16 +02:00
})
const perform = (dispatch) => ({
navigate: (path) => dispatch(doNavigate(path)),
})
export default connect(select, perform)(SearchPage)