lbry-desktop/src/renderer/component/searchOptions/index.js

17 lines
410 B
JavaScript
Raw Normal View History

2019-02-18 18:24:56 +01:00
import { connect } from 'react-redux';
import { selectSearchOptions, doUpdateSearchOptions } from 'lbry-redux';
import SearchOptions from './view';
const select = state => ({
options: selectSearchOptions(state),
});
const perform = dispatch => ({
setSearchOption: (option, value) => dispatch(doUpdateSearchOptions({ [option]: value })),
});
export default connect(
select,
perform
)(SearchOptions);