import React, { Component, Fragment } from 'react'; import PropTypes from 'prop-types'; import { Link } from '@gatsbyjs/reach-router'; import { siteRoot, gettext } from '../../utils/constants'; import MainPanelTopbar from './main-panel-topbar'; class OrgLogs extends Component { constructor(props) { super(props); } tabItemClick = (param) => { this.props.tabItemClick(param); }; render() { return (
  • this.tabItemClick('logadmin')}> {gettext('File Access')}
  • this.tabItemClick('file-update')}> {gettext('File Update')}
  • this.tabItemClick('perm-audit')}> {gettext('Permission')}
{this.props.children}
); } } const propTypes = { currentTab: PropTypes.string.isRequired, tabItemClick: PropTypes.func.isRequired, children: PropTypes.any.isRequired, }; OrgLogs.propTypes = propTypes; export default OrgLogs;