// @flow import React from 'react'; import classnames from 'classnames'; import { ComboboxOption } from '@reach/combobox'; import FileThumbnail from 'component/fileThumbnail'; import ChannelThumbnail from 'component/channelThumbnail'; import FileProperties from 'component/previewOverlayProperties'; import ClaimProperties from 'component/claimProperties'; import PremiumBadge from 'component/common/premium-badge'; type Props = { claim: ?Claim, uri: string, isResolvingUri: boolean, geoRestriction: ?GeoRestriction, odyseeMembership: ?string, }; export default function WunderbarSuggestion(props: Props) { const { claim, uri, isResolvingUri, odyseeMembership, geoRestriction } = props; if (isResolvingUri) { return ( ); } if (!claim) { return null; } if (geoRestriction) { // Could display something else in the future, but hide completely for now. return null; } const isChannel = claim.value_type === 'channel'; const isCollection = claim.value_type === 'collection'; return ( {isChannel && } {!isChannel && ( {/* @if TARGET='app' */} {!isCollection && ( )} {/* @endif */} {isCollection && ( )} )} {claim.value.title} {isChannel ? claim.name : (claim.signing_channel && claim.signing_channel.name) || __('Anonymous')} ); }