import * as I from "csgogsi"; import TeamLogo from "../MatchBar/TeamLogo"; import "./mapseries.scss"; import { Match, Veto } from "../../API/types"; interface IProps { match: Match | null; teams: I.Team[]; isFreezetime: boolean; map: I.Map; } interface IVetoProps { veto: Veto; teams: I.Team[]; active: boolean; } const VetoEntry = ({ veto, teams, active }: IVetoProps) => { return (
{veto.mapName}
team.id === veto.teamId)[0]} />
team.id === veto.winner)[0]} />
{Object.values(veto.score || ["-", "-"]).sort().join(":")}
Currently playing
); }; const MapSeries = ({ match, teams, isFreezetime, map }: IProps) => { if (!match || !match.vetos.length) return null; return (
Picked
Winner
Score
{match.vetos.filter((veto) => veto.type !== "ban" ).map((veto) => { if (!veto.mapName) return null; return ( ); })}
); }; export default MapSeries;