autosuggest_status.jsx 532 B

123456789101112131415
  1. import { FormattedMessage } from 'react-intl';
  2. import DisplayName from '../../../components/display_name';
  3. import ImmutablePropTypes from 'react-immutable-proptypes';
  4. const AutosuggestStatus = ({ status }) => (
  5. <div className='autosuggest-status'>
  6. <FormattedMessage id='search.status_by' defaultMessage='Status by {name}' values={{ name: <strong>@{status.getIn(['account', 'acct'])}</strong> }} />
  7. </div>
  8. );
  9. AutosuggestStatus.propTypes = {
  10. status: ImmutablePropTypes.map.isRequired
  11. };
  12. export default AutosuggestStatus;