import { Flex, Text } from '@mantine/core'; import React from 'react'; import { MatchCard } from './match-card'; import { Match } from '../types'; interface BracketRoundProps { matches: Match[]; roundIndex: number; getParentMatchOrder: (parentLid: number) => number | string; onAnnounce?: (teamOne: any, teamTwo: any) => void; } export const BracketRound: React.FC = ({ matches, roundIndex, getParentMatchOrder, onAnnounce, }) => { const isBye = (type: string) => type?.toLowerCase() === 'bye'; return ( {matches.map((match, matchIndex) => { if (!match) return null; if (isBye(match.type)) return <>; // for spacing return ( {match.order} ); })} ); };