import React from 'react'; import PropTypes from 'prop-types'; import NavLink from 'react-router-dom/NavLink'; import { FormattedMessage, injectIntl } from 'react-intl'; export const links = [ , , , , , , ]; export function getIndex (path) { return links.findIndex(link => link.props.to === path); } export function getLink (index) { return links[index].props.to; } @injectIntl export default class TabsBar extends React.Component { static propTypes = { intl: PropTypes.object.isRequired, } render () { const { intl: { formatMessage } } = this.props; return ( ); } }