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