import React from 'react'; import PropTypes from 'prop-types'; import { Link } from '@reach/router'; import Logo from '../../components/logo'; import { gettext, siteRoot, isPro, isDefaultAdmin, canViewSystemInfo, canViewStatistic, canConfigSystem, canManageLibrary, canManageUser, canManageGroup, canViewUserLog, canViewAdminLog, constanceEnabled, multiTenancy, multiInstitution, sysadminExtraEnabled, enableGuestInvitation, enableTermsAndConditions, enableFileScan, enableWorkWeixin } from '../../utils/constants'; const propTypes = { isSidePanelClosed: PropTypes.bool.isRequired, onCloseSidePanel: PropTypes.func.isRequired, currentTab: PropTypes.string.isRequired, tabItemClick: PropTypes.func.isRequired }; class SidePanel extends React.Component { getActiveClass = (tab) => { return this.props.currentTab == tab ? 'active' : ''; } render() { return (