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 i18n from '../../i18n';
12 }) => rounds && rounds.length ?
13 <ol className="rounds">
14 {rounds.map((round, index) =>
19 tournament={tournament}
24 <Alert variant="info">
25 {i18n.t('rounds.empty')}
30 rounds: PropTypes.arrayOf(PropTypes.shape({
33 tournament: PropTypes.shape({
37 export default withTranslation()(List);