import React from 'react'; import PropTypes from 'prop-types'; import { Link } from '@gatsbyjs/reach-router'; import { siteRoot, gettext } from '../../../utils/constants'; const propTypes = { currentItem: PropTypes.string.isRequired }; class Nav extends React.Component { constructor(props) { super(props); this.navItems = [ {name: 'info', urlPart: '', text: gettext('Info')}, {name: 'owned-repos', urlPart: 'owned-libraries', text: gettext('Owned Libraries')}, {name: 'shared-repos', urlPart: 'shared-libraries', text: gettext('Shared Libraries')}, {name: 'links', urlPart: 'shared-links', text: gettext('Shared Links')}, {name: 'groups', urlPart: 'groups', text: gettext('Groups')} ]; } render() { const { currentItem, email, userName } = this.props; return (