Sha256: 2db5f5dca47762161812fb65e26a3b894026238e21b8de921a5fd57df3de0970

Contents?: true

Size: 614 Bytes

Versions: 22

Compression:

Stored size: 614 Bytes

Contents

import React from 'react';
import { Icon } from 'patternfly-react';
import PropTypes from 'prop-types';

import InfoItem from './InfoItem';
import { itemIteratorId } from './helpers';

const IconInfoItem = ({ template, attr, iconName, tooltipText }) => (
  <InfoItem itemId={itemIteratorId(template, attr)} tooltipText={tooltipText}>
    <Icon type="fa" name={iconName} />
  </InfoItem>
);

IconInfoItem.propTypes = {
  template: PropTypes.object.isRequired,
  attr: PropTypes.string.isRequired,
  iconName: PropTypes.string.isRequired,
  tooltipText: PropTypes.string.isRequired,
};

export default IconInfoItem;

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
foreman_templates-7.0.3 webpack/components/TemplateSyncResult/components/SyncedTemplate/IconInfoItem.js
foreman_templates-7.0.2 webpack/components/TemplateSyncResult/components/SyncedTemplate/IconInfoItem.js