lbry-desktop/ui/component/wunderbarSuggestion/index.js

22 lines
591 B
JavaScript
Raw Normal View History

2020-12-03 18:29:47 +01:00
import { connect } from 'react-redux';
import {
selectClaimForUri,
selectGeoRestrictionForUri,
selectIsUriResolving,
selectOdyseeMembershipForUri,
} from 'redux/selectors/claims';
2020-12-03 18:29:47 +01:00
import WunderbarSuggestion from './view';
const select = (state, props) => {
const { uri } = props;
return {
claim: selectClaimForUri(state, uri),
isResolvingUri: selectIsUriResolving(state, uri),
geoRestriction: selectGeoRestrictionForUri(state, props.uri),
odyseeMembership: selectOdyseeMembershipForUri(state, uri),
};
};
2020-12-03 18:29:47 +01:00
export default connect(select)(WunderbarSuggestion);