lbry-desktop/ui/js/component/fileListSearch/index.js
2017-11-13 16:02:23 -05:00

19 lines
513 B
JavaScript

import React from "react";
import { connect } from "react-redux";
import { doSearch } from "redux/actions/search";
import {
selectIsSearching,
makeSelectSearchUris,
} from "redux/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);