1 import PropTypes from 'prop-types';
2 import React from 'react';
3 import { withTranslation } from 'react-i18next';
5 import List from '../results/List';
6 import i18n from '../../i18n';
8 const Item = ({ round, tournament }) => <li className="round d-flex">
10 {i18n.t('rounds.date', { date: new Date(round.created_at) })}
12 <List round={round} tournament={tournament} />
16 round: PropTypes.shape({
17 created_at: PropTypes.string,
19 tournament: PropTypes.shape({
20 participants: PropTypes.arrayOf(PropTypes.shape({
25 export default withTranslation()(Item);