// @flow import ChannelThumbnail from 'component/channelThumbnail'; import React from 'react'; import PremiumBadge from 'component/common/premium-badge'; type Props = { claimLabel?: string, claimTitle?: string, emote?: any, uri?: string, odyseeMembershipByUri: ?string, }; export default function TextareaSuggestionsItem(props: Props) { const { claimLabel, claimTitle, emote, uri, odyseeMembershipByUri, ...autocompleteProps } = props; if (emote) { const { name: value, url, unicode } = emote; return (
{unicode ?
{unicode}
: }
{value}
); } if (claimLabel) { const value = claimLabel; return (
{claimTitle || value} {value}
); } return null; }