import React from 'react'; import PropTypes from 'prop-types'; import { isEmpty } from 'lodash'; import { Button, Popover } from '@patternfly/react-core'; import { translate as __ } from 'foremanReact/common/I18n'; import { foremanUrl } from '../../../ForemanRhCloudHelpers'; const RemediateButton = ({ isExperimentalMode, selectedIds, toggleModal }) => { const [isVisible, setVisible] = React.useState(true); const popoverContent = __( `To use this feature, please enable Show Experimental Labs in settings.` ); let button = ( ); if (!isExperimentalMode) { button = ( } > {button} ); } return button; }; RemediateButton.propTypes = { selectedIds: PropTypes.object, isExperimentalMode: PropTypes.bool, toggleModal: PropTypes.func.isRequired, }; RemediateButton.defaultProps = { selectedIds: {}, isExperimentalMode: false, }; export default RemediateButton;