import * as I from "../../API/types"; import "./index.scss"; import TeamLogo from "../MatchBar/TeamLogo"; interface IProps { match: I.Match; show: boolean; teams: I.Team[]; veto: I.Veto | null; } const MatchOverview = ({ match, teams, show }: IProps) => { const left = teams.find((team) => team._id === match.left.id); const right = teams.find((team) => team._id === match.right.id); if (!match || !left || !right) return null; return (
Upcoming match
{(left.shortName || left.name).substring(0, 4)}
vs
{(right.shortName || right.name).substring(0, 4)}
); }; export default MatchOverview;