import React from 'react'; import PropTypes from 'prop-types'; import { useMutation } from '@apollo/client'; import { TextList, TextContent, TextArea, TextListItem, TextListVariants, TextListItemVariants, TextInput, } from '@patternfly/react-core'; import { translate as __ } from 'foremanReact/common/I18n'; import EditableInput from '../../../components/EditableInput'; import { onAttrUpdate, policySchedule } from './OvalPoliciesShowHelper'; import updateOvalPolicyMutation from '../../../graphql/mutations/updateOvalPolicy.gql'; const DetailsTab = props => { const { policy, showToast } = props; const [callMutation] = useMutation(updateOvalPolicyMutation); return ( {__('Name')} {__('Period')} {policySchedule(policy)} {__('Description')} ); }; DetailsTab.propTypes = { policy: PropTypes.object.isRequired, showToast: PropTypes.func.isRequired, }; export default DetailsTab;