import { NavLink, withRouter } from 'react-router-dom'; import { FormattedMessage, injectIntl } from 'react-intl'; import NotificationCounter from '../notification_counter'; import { me } from '../../initial_state'; const links = [ , , , , ] export default @injectIntl @withRouter class FooterBar extends PureComponent { static propTypes = { intl: PropTypes.object.isRequired, } render () { const { intl: { formatMessage } } = this.props; if (!me) return null; return (
{ links.map((link) => React.cloneElement(link, { key: link.props.to, 'aria-label': formatMessage({ id: link.props['data-preview-title-id'] }) })) }
); } }