// @flow import ChannelMentionSuggestion from 'component/channelMentionSuggestion'; import LbcSymbol from 'component/common/lbc-symbol'; import React from 'react'; type Props = { uriFromQuery: string, winningUri: string, isResolvingUri: boolean, doResolveUri: (string) => void, }; export default function ChannelMentionTopSuggestion(props: Props) { const { uriFromQuery, winningUri, isResolvingUri, doResolveUri } = props; React.useEffect(() => { if (uriFromQuery) doResolveUri(uriFromQuery); }, [doResolveUri, uriFromQuery]); if (isResolvingUri) { return (

); } return !winningUri ? null : ( <>

); }