// @flow import ChannelThumbnail from 'component/channelThumbnail'; import React from 'react'; type Props = { claim?: Claim, emote?: any, uri?: string, }; export default function TextareaSuggestionsItem(props: Props) { const { claim, emote, uri, ...autocompleteProps } = props; if (emote) { const { name: value, url, unicode } = emote; return (
{unicode ?
{unicode}
: }
{value}
); } if (claim) { const value = claim.canonical_url.replace('lbry://', '').replace('#', ':'); return (
{(claim.value && claim.value.title) || value} {value}
); } return null; }