1 import PropTypes from 'prop-types';
2 import React from 'react';
4 import Item from './Item';
5 import { sortByResult } from '../../helpers/Participant';
7 const List = ({ round, tournament }) => <div className="results d-flex">
8 {sortByResult(tournament.participants, round).map(participant =>
11 participant={participant}
13 tournament={tournament}
19 round: PropTypes.shape({
21 tournament: PropTypes.shape({
22 participants: PropTypes.arrayOf(PropTypes.shape({