import React from 'react'; import { ListView } from 'patternfly-react'; import PropTypes from 'prop-types'; import PreupgradeReportEntry from './components/PreupgradeReportEntry'; const PreupgradeReportsList = ({ preupgradeReports }) => { const flatEntries = preupgradeReports.reduce( (memo, report) => [...memo, ...report.entries], [] ); return ( {flatEntries.map((entry, idx) => ( ))} ); }; PreupgradeReportsList.propTypes = { preupgradeReports: PropTypes.array.isRequired, }; export default PreupgradeReportsList;