import { FormattedMessage } from 'react-intl'; import { ShortNumber } from 'mastodon/components/short_number'; interface Props { tag: { name: string; url?: string; history?: { uses: number; accounts: string; day: string; }[]; following?: boolean; type: 'hashtag'; }; } export const AutosuggestHashtag: React.FC = ({ tag }) => { const weeklyUses = tag.history && ( total + day.uses * 1, 0)} /> ); return (
#{tag.name}
{tag.history !== undefined && (
)}
); };