import React from 'react'; import PropTypes from 'prop-types'; import { Link } from 'react-router-dom'; import { Helmet } from 'react-helmet'; import { translate as __ } from 'foremanReact/common/I18n'; import { Button, Grid, GridItem, Text, TextVariants, Tabs, Tab, TabTitleText, } from '@patternfly/react-core'; import withLoading from '../../../components/withLoading'; import CvesTab from './CvesTab'; import HostgroupsTab from './HostgroupsTab'; import DetailsTab from './DetailsTab'; import { newJobFormPath } from './OvalPoliciesShowHelper'; import { resolvePath } from '../../../helpers/pathsHelper'; const OvalPoliciesShow = props => { const { policy, match, history } = props; const activeTab = match.params.tab ? match.params.tab : 'details'; const handleTabSelect = (event, value) => { history.push( resolvePath(match.path, { ':id': match.params.id, ':tab?': value }) ); }; return ( {`${policy.name} | OVAL Policy`} {policy.name} {__('Details')}} > {__('CVEs')}} > {__('Hostgroups')}} > ); }; OvalPoliciesShow.propTypes = { match: PropTypes.object.isRequired, history: PropTypes.object.isRequired, policy: PropTypes.object.isRequired, }; export default withLoading(OvalPoliciesShow);