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 flex-wrap">
8 {sortByResult(tournament.participants, round).map((participant, index) =>
12 participant={participant}
14 tournament={tournament}
20 round: PropTypes.shape({
22 tournament: PropTypes.shape({
23 participants: PropTypes.arrayOf(PropTypes.shape({