// @flow import ChannelThumbnail from 'component/channelThumbnail'; import React from 'react'; import PremiumBadge from 'component/premiumBadge'; type Props = { claimLabel?: string, claimTitle?: string, emote?: any, uri?: string, }; export default function TextareaSuggestionsItem(props: Props) { const { claimLabel, claimTitle, emote, uri, ...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; }