import { NavLink } from 'react-router-dom' import { injectIntl, defineMessages } from 'react-intl' import ImmutablePureComponent from 'react-immutable-pure-component' import { HotKeys } from 'react-hotkeys' import ImmutablePropTypes from 'react-immutable-proptypes' import StatusContainer from '../../../../containers/status_container' import AccountContainer from '../../../../containers/account_container' import Avatar from '../../../../components/avatar' import Icon from '../../../../components/icon' import Text from '../../../../components/text' import DisplayName from '../../../../components/display_name' const messages = defineMessages({ }) const notificationForScreenReader = (intl, message, timestamp) => { const output = [message] output.push(intl.formatDate(timestamp, { hour: '2-digit', minute: '2-digit', month: 'short', day: 'numeric' })) return output.join(', ') } export default @injectIntl class Notification extends ImmutablePureComponent { static contextTypes = { router: PropTypes.object, } static propTypes = { status: ImmutablePropTypes.map, intl: PropTypes.object.isRequired, notificationType: PropTypes.string.isRequired, accounts: ImmutablePropTypes.list, } renderFavorite = () => { const { status, notificationType, accounts } = this.props return (
{ accounts.slice(0, 6).map((account, i) => ( )) }
{ accounts.slice(0, 1).map((account, i) => ( )) }
 and 3 others favorited your gab
post this at 1-14-2020 12:15pm (edited)
) } render() { const { status, notificationType, accounts, intl } = this.props // const linkTo = '/admin/posts/123/reblogs' // etc. return (
{ accounts.slice(0, 6).map((account, i) => ( )) }
{ accounts.slice(0, 1).map((account, i) => ( )) }
 and 3 others favorited your gab
post this at 1-14-2020 12:15pm (edited)
) } }