import React from 'react'; import PropTypes from 'prop-types'; import ShortNumber from 'flavours/twitter/components/short_number'; import { FormattedMessage } from 'react-intl'; export default class AutosuggestHashtag extends React.PureComponent { static propTypes = { tag: PropTypes.shape({ name: PropTypes.string.isRequired, url: PropTypes.string, history: PropTypes.array, }).isRequired, }; render() { const { tag } = this.props; const weeklyUses = tag.history && ( total + day.uses * 1, 0)} /> ); return (
#{tag.name}
{tag.history !== undefined && (
)}
); } }