import React from 'react'; import PropTypes from 'prop-types'; import { translate as __ } from 'foremanReact/common/I18n'; import { LoadingState, Alert } from 'patternfly-react'; import { STATUS } from 'foremanReact/constants'; import RoundItem from './components/RoundItem'; const Rounds = ({ status, items }) => { if (status === STATUS.ERROR) { return ( {__( 'There was an error while updating the status, try refreshing the page.' )} ); } return (
{items.map(round => ( ))}
{__('Round')} {__('Priority')} {__('Hosts Count')} {__('Status')} {__('Actions')}
); }; Rounds.propTypes = { status: PropTypes.string.isRequired, items: PropTypes.array.isRequired, }; export default Rounds;