import React from 'react'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import { FormattedMessage } from 'react-intl'; import AccountContainer from '../../../containers/account_container'; import StatusContainer from '../../../containers/status_container'; import ImmutablePureComponent from 'react-immutable-pure-component'; import Hashtag from '../../../components/hashtag'; export default class SearchResults extends ImmutablePureComponent { static propTypes = { results: ImmutablePropTypes.map.isRequired, trends: ImmutablePropTypes.list, fetchTrends: PropTypes.func.isRequired, }; componentDidMount () { const { fetchTrends } = this.props; fetchTrends(); } render () { const { results, trends } = this.props; let accounts, statuses, hashtags; let count = 0; if (results.isEmpty()) { return (