2018-08-20 02:29:42 -07:00
|
|
|
import React from 'react';
|
|
|
|
import { FormattedMessage } from 'react-intl';
|
|
|
|
import ImmutablePropTypes from 'react-immutable-proptypes';
|
2019-01-16 05:25:58 -08:00
|
|
|
import Permalink from './permalink';
|
2018-08-20 02:29:42 -07:00
|
|
|
import { shortNumberFormat } from 'flavours/glitch/util/numbers';
|
|
|
|
|
|
|
|
const Hashtag = ({ hashtag }) => (
|
2019-04-15 18:31:56 -07:00
|
|
|
<Permalink className='hashtag' href={hashtag.get('url')} to={`/timelines/tag/${hashtag.get('name')}`}>
|
|
|
|
#<span>{hashtag.get('name')}</span>
|
|
|
|
</Permalink>
|
2018-08-20 02:29:42 -07:00
|
|
|
);
|
|
|
|
|
|
|
|
Hashtag.propTypes = {
|
|
|
|
hashtag: ImmutablePropTypes.map.isRequired,
|
|
|
|
};
|
|
|
|
|
|
|
|
export default Hashtag;
|