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