import type { Match } from "@/lib/types"; import { kickoffDisplay } from "@/lib/format"; import BallIcon from "./BallIcon"; import TeamFlag from "./TeamFlag"; export default function MatchupHUD({ match }: { match: Match }) { const { group, roundLabel } = match; const finished = !!match.result; return (
{/* 진행 바: roundLabel → Final */}
{roundLabel}
Final
{/* 대결 카드 (녹색 글로우 보더) */}
{/* 헤더: 브랜드 아이콘 + 팀명 + 일시 */}
{match.teamA.name} vs{" "} {match.teamB.name}
{kickoffDisplay(match.kickoffKst)} · Group {group}
{match.venue}
{/* 국기 + 라이트닝 VS (종료 시 최종 스코어) */}
{finished && match.result ? ( {match.result.scoreA} - {match.result.scoreB} ) : ( VS )}
{finished && (
경기 종료 · 최종 결과
)}
); }