import React from 'react'; import { FormattedMessage } from 'react-intl'; import { Link } from 'react-router-dom'; import { Sparklines, SparklinesCurve } from 'react-sparklines'; import { shortNumberFormat } from '../utils/numbers'; import { HStack, Stack, Text } from './ui'; import type { Tag } from 'soapbox/types/entities'; interface IHashtag { hashtag: Tag; } const Hashtag: React.FC = ({ hashtag }) => { const count = Number(hashtag.history?.get(0)?.accounts); return ( #{hashtag.name} {Boolean(count) && ( {shortNumberFormat(count)}, }} /> )} {hashtag.history && (
+day.uses).toArray()} >
)}
); }; export default Hashtag;