1 import PropTypes from 'prop-types';
2 import React from 'react';
3 import { Alert } from 'react-bootstrap';
4 import { withTranslation } from 'react-i18next';
6 import Item from './Item';
7 import LoadMore from './LoadMore';
8 import i18n from '../../i18n';
14 }) => rounds && rounds.length ? <>
15 <ol className="rounds">
20 tournament={tournament}
25 <LoadMore loadMore={loadMore} />
28 <Alert variant="info">
29 {i18n.t('rounds.empty')}
34 loadMore: PropTypes.func,
35 rounds: PropTypes.arrayOf(PropTypes.shape({
38 tournament: PropTypes.shape({
42 export default withTranslation()(List);