2020-12-03 18:29:47 +01:00
|
|
|
import { connect } from 'react-redux';
|
2022-07-01 21:40:06 +02:00
|
|
|
import { selectClaimForUri, selectGeoRestrictionForUri, selectIsUriResolving } from 'redux/selectors/claims';
|
2020-12-03 18:29:47 +01:00
|
|
|
import WunderbarSuggestion from './view';
|
|
|
|
|
2022-03-09 19:05:37 +01:00
|
|
|
const select = (state, props) => {
|
|
|
|
const { uri } = props;
|
|
|
|
|
|
|
|
return {
|
|
|
|
claim: selectClaimForUri(state, uri),
|
|
|
|
isResolvingUri: selectIsUriResolving(state, uri),
|
2022-05-25 08:37:09 +02:00
|
|
|
geoRestriction: selectGeoRestrictionForUri(state, props.uri),
|
2022-03-09 19:05:37 +01:00
|
|
|
};
|
|
|
|
};
|
2020-12-03 18:29:47 +01:00
|
|
|
|
|
|
|
export default connect(select)(WunderbarSuggestion);
|