2017-12-21 22:08:54 +01:00
|
|
|
import { connect } from 'react-redux';
|
2019-03-28 17:53:13 +01:00
|
|
|
import { doSearch, selectIsSearching } from 'lbry-redux';
|
2017-12-21 22:08:54 +01:00
|
|
|
import SearchPage from './view';
|
2017-05-05 10:01:16 +02:00
|
|
|
|
2017-06-06 06:21:55 +02:00
|
|
|
const select = state => ({
|
2017-05-05 10:01:16 +02:00
|
|
|
isSearching: selectIsSearching(state),
|
2017-06-06 06:21:55 +02:00
|
|
|
});
|
2017-05-05 10:01:16 +02:00
|
|
|
|
2019-03-28 17:53:13 +01:00
|
|
|
const perform = {
|
|
|
|
doSearch,
|
|
|
|
};
|
2017-05-05 10:01:16 +02:00
|
|
|
|
2018-06-20 08:20:16 +02:00
|
|
|
export default connect(
|
|
|
|
select,
|
|
|
|
perform
|
|
|
|
)(SearchPage);
|