import React from 'react';
import { Sparklines, SparklinesCurve } from 'react-sparklines';
import { Link } from 'react-router-dom';
import { FormattedMessage, FormattedNumber } from 'react-intl';
import ImmutablePropTypes from 'react-immutable-proptypes';
const shortNumberFormat = number => {
if (number < 1000) {
return ;
} else {
return K;
}
};
const Hashtag = ({ hashtag }) => (
#{hashtag.get('name')}
{shortNumberFormat(hashtag.getIn(['history', 0, 'accounts']))} }} />
{shortNumberFormat(hashtag.getIn(['history', 0, 'uses']))}
day.get('uses')).toArray()}>
);
Hashtag.propTypes = {
hashtag: ImmutablePropTypes.map.isRequired,
};
export default Hashtag;