1 import PropTypes from 'prop-types';
2 import React from 'react';
4 import Item from './Item';
5 import { sortByResult } from '../../helpers/Participant';
6 import { getRunners } from '../../helpers/Tournament';
8 const List = ({ round, tournament }) => <div className="results d-flex flex-wrap">
9 {sortByResult(getRunners(tournament), round).map(participant =>
12 participant={participant}
14 tournament={tournament}
20 round: PropTypes.shape({
22 tournament: PropTypes.shape({
23 participants: PropTypes.arrayOf(PropTypes.shape({