import React from 'react'; import PropTypes from 'prop-types'; import { NavLink, withRouter } from 'react-router-dom'; import { FormattedMessage, injectIntl } from 'react-intl'; import NotificationsCounterIcon from './notifications_counter_icon'; import { me } from '../../../initial_state'; const links = [ , , , , ] export default @injectIntl @withRouter class FooterBar extends React.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'] }) })) }
); } }