predictions

This commit is contained in:
yohlo
2026-07-14 14:15:34 -07:00
parent e6c72a5789
commit 1783f0e6bc
28 changed files with 2085 additions and 89 deletions
+12 -6
View File
@@ -11,6 +11,7 @@ interface BracketProps {
num_groups: number;
advance_per_group: number;
};
renderMatch?: (match: Match) => React.ReactNode;
}
export const Bracket: React.FC<BracketProps> = ({
@@ -18,6 +19,7 @@ export const Bracket: React.FC<BracketProps> = ({
orders,
showControls,
groupConfig,
renderMatch,
}) => {
const containerRef = useRef<HTMLDivElement>(null);
const svgRef = useRef<SVGSVGElement>(null);
@@ -133,12 +135,16 @@ export const Bracket: React.FC<BracketProps> = ({
<div key={match.lid}></div>
) : (
<div key={match.lid}>
<MatchCard
match={match}
orders={orders}
showControls={showControls}
groupConfig={groupConfig}
/>
{renderMatch ? (
renderMatch(match)
) : (
<MatchCard
match={match}
orders={orders}
showControls={showControls}
groupConfig={groupConfig}
/>
)}
</div>
)
)}