import React from 'react';
import PropTypes from 'prop-types';
import { Col, ListView } from 'patternfly-react';
import { translate as __ } from 'foremanReact/common/I18n';
import SubscriptionDetailProduct from './SubscriptionDetailProduct';
const SubscriptionDetailProductContent = ({ productContent }) => {
const listItems = productContent.results.map(product => ({
index: product.id,
title: product.name,
availableContent: (
product.available_content.map(c => (
{
enabled: c.enabled,
...c.content,
}
))
),
}));
if (listItems.length > 0) {
return (