Sha256: 9d4f3e7a7bdcf37783729fa843790a5a01774245cba7a52b30d2076cb6325f9a
Contents?: true
Size: 556 Bytes
Versions: 6
Compression:
Stored size: 556 Bytes
Contents
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 ( <Label variant="outline" color="green" icon={<CheckCircleIcon />}> {__('Added')} </Label> ); } return __('Not added'); }; AddedStatusLabel.propTypes = { added: PropTypes.bool.isRequired, }; export default AddedStatusLabel;
Version data entries
6 entries across 6 versions & 1 rubygems