lbry-desktop/ui/js/component/fileListSearch/index.js
2017-10-06 17:46:41 -04:00

16 lines
496 B
JavaScript

import React from "react";
import { connect } from "react-redux";
import { doSearch } from "actions/search";
import { selectIsSearching, makeSelectSearchUris } from "selectors/search";
import FileListSearch from "./view";
const select = (state, props) => ({
isSearching: selectIsSearching(state),
uris: makeSelectSearchUris(props.query)(state),
});
const perform = dispatch => ({
search: search => dispatch(doSearch(search)),
});
export default connect(select, perform)(FileListSearch);