import React, { Fragment } from 'react'; import { ListView, Icon } from 'patternfly-react'; import PropTypes from 'prop-types'; import { translate as __ } from 'foremanReact/common/I18n'; const labelMapper = { 1: __('Low'), 2: __('Moderate'), 3: __('Important'), 4: __('Critical'), }; const ListItem = ({ title, totalRisk, resultsUrl, solutionUrl }) => { const heading = (
{title}
); const riskLabel = labelMapper[totalRisk]; const additionalInfo = [{riskLabel}
, ]; const knowledgebaseLink = solutionUrl && ( ); const insightsCloudLink = resultsUrl && (
{__('Read more about it in RH cloud insights')}{' '}
{title}
{knowledgebaseLink} {insightsCloudLink}