UNPKG

simple-beautiful-bracket

Version:

A simple and beautiful React component for visualizing tournament brackets.

29 lines (28 loc) 638 B
import { FC } from 'react'; export type Track = { id: string; name: string; images?: { url: string; }[]; artists?: { name: string; }[]; preview_url?: string; }; export type Match = { a: Track; b: Track | null; }; export declare function ShareModal({ showModal, onClose, champion, rounds, winners }: { showModal: boolean; onClose: () => void; champion: Track; rounds: Match[][]; winners: Track[][]; }): import("react/jsx-runtime").JSX.Element; declare const TournamentResults: FC<{ rounds: Match[][]; winners: Track[][]; }>; export default TournamentResults;