import React from 'react'; import PropTypes from 'prop-types'; import { Link } from '@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: 'fileStatistic', urlPart: 'statistics-admin/file', text: gettext('File')}, {name: 'storageStatistic', urlPart: 'statistics-admin/total-storage', text: gettext('Storage')}, {name: 'usersStatistic', urlPart: 'statistics-admin/active-users', text: gettext('Users')}, {name: 'trafficStatistic', urlPart: 'statistics-admin/traffic', text: gettext('Traffic')}, {name: 'reportsStatistic', urlPart: 'statistics-admin/reports', text: gettext('Reports')}, ]; } render() { const { currentItem } = this.props; return (