import React from 'react'; import { Label } from '@patternfly/react-core'; import { CheckCircleIcon } from '@patternfly/react-icons'; import { translate as __ } from 'foremanReact/common/I18n'; import PropTypes from 'prop-types'; const AddedStatusLabel = ({ added }) => { if (added) { return ( ); } return __('Not added'); }; AddedStatusLabel.propTypes = { added: PropTypes.bool.isRequired, }; export default AddedStatusLabel;