lbry-desktop/ui/component/wunderbarTopSuggestion/index.js
2020-12-03 12:39:12 -05:00

15 lines
541 B
JavaScript

import { connect } from 'react-redux';
import { doResolveUris, makeSelectClaimForUri } from 'lbry-redux';
import { makeSelectWinningUriForQuery } from 'redux/selectors/search';
import WunderbarTopSuggestion from './view';
const select = (state, props) => {
const winningUri = makeSelectWinningUriForQuery(props.query)(state);
const winningClaim = winningUri ? makeSelectClaimForUri(winningUri)(state) : undefined;
return { winningUri, winningClaim };
};
export default connect(select, {
doResolveUris,
})(WunderbarTopSuggestion);