2021-09-30 23:30:32 +02:00
|
|
|
import { connect } from 'react-redux';
|
2021-10-17 10:36:14 +02:00
|
|
|
import { makeSelectIsUriResolving } from 'redux/selectors/claims';
|
|
|
|
import { doResolveUri } from 'redux/actions/claims';
|
2021-09-30 23:30:32 +02:00
|
|
|
import { makeSelectWinningUriForQuery } from 'redux/selectors/search';
|
|
|
|
import ChannelMentionTopSuggestion from './view';
|
|
|
|
|
|
|
|
const select = (state, props) => {
|
|
|
|
const uriFromQuery = `lbry://${props.query}`;
|
|
|
|
return {
|
|
|
|
uriFromQuery,
|
|
|
|
isResolvingUri: makeSelectIsUriResolving(uriFromQuery)(state),
|
|
|
|
winningUri: makeSelectWinningUriForQuery(props.query)(state),
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
export default connect(select, { doResolveUri })(ChannelMentionTopSuggestion);
|