lbry-desktop/ui/js/page/search/index.js
2017-05-11 19:28:43 -04:00

24 lines
498 B
JavaScript

import React from 'react'
import {
connect,
} from 'react-redux'
import {
selectIsSearching,
selectSearchQuery,
selectCurrentSearchResults,
} from 'selectors/search'
import {
doNavigate,
} from 'actions/app'
import SearchPage from './view'
const select = (state) => ({
isSearching: selectIsSearching(state),
query: selectSearchQuery(state)
})
const perform = (dispatch) => ({
navigate: (path) => dispatch(doNavigate(path)),
})
export default connect(select, perform)(SearchPage)