diff --git a/apps/web/src/pages/CommunityInternalStatsPage.tsx b/apps/web/src/pages/CommunityInternalStatsPage.tsx new file mode 100644 index 00000000..65a84da6 --- /dev/null +++ b/apps/web/src/pages/CommunityInternalStatsPage.tsx @@ -0,0 +1,388 @@ +import { Link, useSearchParams } from 'react-router'; +import { + useCommunity, + useCommunityInternalStatsMatches, + useCommunityLeaderboard, + useDdragonManifest, + useTeamInsights, +} from '../api/hooks'; +import type { + ApiInternalMatchCard, + ApiLeaderHighlight, + ApiLeaderboardRow, + TeamSide, +} from '../api/types'; +import { DEFAULT_COMMUNITY_ID } from '../config'; +import { championDisplayName, championIconUrl, profileIconUrl } from '../lib/ddragon'; + +function formatDateTime(value: string) { + return new Intl.DateTimeFormat('ko-KR', { + month: 'long', + day: 'numeric', + hour: '2-digit', + minute: '2-digit', + }).format(new Date(value)); +} + +function formatDuration(seconds: number) { + const minutes = Math.floor(seconds / 60); + const rest = seconds % 60; + return `${minutes}:${String(rest).padStart(2, '0')}`; +} + +function sideLabel(side: TeamSide) { + return side === 'blue' ? '블루팀' : '레드팀'; +} + +function sideText(side: TeamSide) { + return side === 'blue' ? 'text-blue-400' : 'text-red-400'; +} + +function ratioClass(value: number) { + if (value >= 55) return 'text-blue-400'; + if (value >= 50) return 'text-amber-400'; + return 'text-base-content/45'; +} + +function ChampionChip({ + championId, + manifest, +}: { + championId: number; + manifest: ReturnType['data']; +}) { + const icon = championIconUrl(manifest, championId); + const name = championDisplayName(manifest, championId) ?? String(championId); + return ( + + + {icon ? : null} + + {name} + + ); +} + +function MatchCard({ + match, + manifest, +}: { + match: ApiInternalMatchCard; + manifest: ReturnType['data']; +}) { + return ( + +
+
+
+
+ {formatDateTime(match.scheduledAt)} +
+

+ {match.title} +

+
+ {match.games.map((game) => ( + + {game.gameNumber}경기 + {game.winnerSide ? ( + + {sideLabel(game.winnerSide)} 승 + + ) : ( + '대기' + )} + {formatDuration(game.gameDuration)} + + ))} +
+
+ +
+
+
+
{match.blueScore}
+
BLUE
+
+
VS
+
+
{match.redScore}
+
RED
+
+
+
+ +
+ {match.teams.map((team) => ( +
+
+ {team.name} +
+
+ {team.members.slice(0, 5).map((member) => ( +
+ + + + + {member.summonerName} + +
+ ))} +
+
+ ))} +
+
+
+ + ); +} + +function HighlightCard({ + title, + highlight, + suffix = '', +}: { + title: string; + highlight: ApiLeaderHighlight | null | undefined; + suffix?: string; +}) { + return ( +
+
+ {title} +
+
+ {highlight ? `${highlight.metric}${suffix}` : '-'} +
+
+ {highlight?.summonerName ?? '기록 없음'} +
+
+ ); +} + +function LeaderboardTable({ + rows, + manifest, +}: { + rows: ApiLeaderboardRow[]; + manifest: ReturnType['data']; +}) { + return ( +
+
+ + + + + + + + + + + + + + + + {rows.map((row, index) => ( + + + + + + + + + + + + ))} + {rows.length === 0 && ( + + + + )} + +
#소환사승률게임KDAGPM킬관여분당 CS주 챔피언
+ {index + 1} + + + + + + + {row.summonerName} + + + + {row.winRate}% + + {row.games} + + {row.kda} + + {row.avgGoldPerMin} + + {row.avgKillParticipation}% + + {row.avgCsPerMin} + +
+ {row.topChampions.map((champion) => ( + + ))} +
+
+ 아직 집계할 내전 기록이 없습니다. +
+
+
+ ); +} + +export default function CommunityInternalStatsPage() { + const [searchParams] = useSearchParams(); + const championIdParam = Number(searchParams.get('championId')); + const championId = + Number.isFinite(championIdParam) && championIdParam > 0 + ? championIdParam + : undefined; + const filters = { + seasonId: searchParams.get('seasonId') ?? undefined, + championId, + limit: 12, + }; + const communityQuery = useCommunity(DEFAULT_COMMUNITY_ID); + const matchesQuery = useCommunityInternalStatsMatches(filters); + const leaderboardQuery = useCommunityLeaderboard(filters); + const insightsQuery = useTeamInsights(filters); + const { data: ddragon } = useDdragonManifest(); + const matches = matchesQuery.data?.pages.flatMap((page) => page.matches) ?? []; + const season = + leaderboardQuery.data?.season ?? matchesQuery.data?.pages[0]?.season ?? null; + + if (!DEFAULT_COMMUNITY_ID) { + return ( +
+ `VITE_DEFAULT_COMMUNITY_ID` 설정이 필요합니다. +
+ ); + } + + return ( +
+ + ← 홈으로 + + +
+
+
+

+ Community Records +

+

+ {communityQuery.data?.name ?? '커뮤니티'} 내전 전적 +

+

+ 토너먼트 코드로 수집된 결과를 기준으로 매치, 선수 순위, 팀 인사이트를 보여줍니다. +

+
+
+
+ 시즌 +
+
{season?.label ?? '현재 시즌'}
+
+
+
+ +
+ + + + + +
+ +
+
+

최근 내전

+
+ 블루 승률 {insightsQuery.data?.sideWinRate.blue ?? 0}% · 레드 승률{' '} + {insightsQuery.data?.sideWinRate.red ?? 0}% +
+
+ {matchesQuery.isLoading ? ( +
+ 내전 기록을 불러오는 중... +
+ ) : ( +
+ {matches.map((match) => ( + + ))} + {matches.length === 0 && ( +
+ 아직 수집된 내전 결과가 없습니다. +
+ )} +
+ )} + {matchesQuery.hasNextPage && ( + + )} +
+ +
+
+

선수 순위

+
+ 포지션은 Riot Match의 라인 정보를 기준으로 합니다. +
+
+ +
+
+ ); +} diff --git a/apps/web/src/pages/InternalMatchDetailPage.tsx b/apps/web/src/pages/InternalMatchDetailPage.tsx new file mode 100644 index 00000000..86197eac --- /dev/null +++ b/apps/web/src/pages/InternalMatchDetailPage.tsx @@ -0,0 +1,262 @@ +import { Link, useParams } from 'react-router'; +import { useDdragonManifest, useInternalMatchDetail } from '../api/hooks'; +import type { ApiInternalMatchDetailResponse, TeamSide } from '../api/types'; +import { DEFAULT_COMMUNITY_ID } from '../config'; +import { championDisplayName, championIconUrl, itemIconUrl } from '../lib/ddragon'; +import { LANE_LABELS } from '../lib/riot-history'; + +function formatDateTime(value: string | number) { + return new Intl.DateTimeFormat('ko-KR', { + month: 'long', + day: 'numeric', + hour: '2-digit', + minute: '2-digit', + }).format(new Date(value)); +} + +function formatDuration(seconds: number) { + const minutes = Math.floor(seconds / 60); + const rest = seconds % 60; + return `${minutes}:${String(rest).padStart(2, '0')}`; +} + +function sideLabel(side: TeamSide) { + return side === 'blue' ? '블루팀' : '레드팀'; +} + +function sideClass(side: TeamSide) { + return side === 'blue' ? 'text-blue-400 border-blue-500/20' : 'text-red-400 border-red-500/20'; +} + +function ChampionCell({ + championId, + manifest, +}: { + championId: number; + manifest: ReturnType['data']; +}) { + const icon = championIconUrl(manifest, championId); + const name = championDisplayName(manifest, championId) ?? String(championId); + return ( +
+ + {icon ? : null} + + {name} +
+ ); +} + +function ItemStrip({ + items, + trinket, + manifest, +}: { + items: number[]; + trinket: number; + manifest: ReturnType['data']; +}) { + return ( +
+ {[...items, trinket].map((itemId, index) => { + const icon = itemIconUrl(manifest, itemId); + return ( + + {icon ? : null} + + ); + })} +
+ ); +} + +function GamePanel({ + game, + manifest, +}: { + game: ApiInternalMatchDetailResponse['games'][number]; + manifest: ReturnType['data']; +}) { + return ( +
+
+
+

+ {game.gameNumber}경기 +

+

+ {formatDateTime(game.gameCreation)} · {formatDuration(game.gameDuration)} ·{' '} + {game.riotMatchId} +

+
+
+ {game.teams.map((team) => ( + + {sideLabel(team.side)} {team.win ? '승' : '패'} + + ))} +
+
+ + {game.teams.map((team) => ( +
+
+ {sideLabel(team.side)} · 바론 {team.objectives.baron} · 드래곤{' '} + {team.objectives.dragon} · 타워 {team.objectives.tower} +
+
+ + + + + + + + + + + + + + + + {team.participants.map((participant) => ( + + + + + + + + + + + + ))} + +
소환사챔피언포지션K/D/ACSGPM킬관여피해비중아이템
+ {participant.userId ? ( + + {participant.summonerName} + + ) : ( + + {participant.summonerName} + + )} + + + + {LANE_LABELS[participant.teamPosition] ?? participant.teamPosition ?? '-'} + + {participant.kills} + / + {participant.deaths} + / + {participant.assists} + + {participant.cs} ({participant.csPerMin}/m) + + {participant.gpm} + + {participant.killParticipation}% + + {participant.damageShare}% + + +
+
+
+ ))} +
+ ); +} + +export default function InternalMatchDetailPage() { + const { cid, matchId } = useParams(); + const communityId = cid ?? DEFAULT_COMMUNITY_ID; + const detailQuery = useInternalMatchDetail(matchId, communityId); + const { data: ddragon } = useDdragonManifest(); + const detail = detailQuery.data; + + if (detailQuery.isLoading) { + return ( +
+ 내전 상세 기록을 불러오는 중... +
+ ); + } + + if (detailQuery.error || !detail) { + return ( +
+

내전 기록을 찾을 수 없습니다

+ + 내전 전적으로 돌아가기 + +
+ ); + } + + return ( +
+ + ← 내전 전적 + + +
+
+
+

+ {detail.match.title} +

+

+ {formatDateTime(detail.match.scheduledAt)} · {detail.match.gameCount}전제 +

+
+
+
+
{detail.match.blueScore}
+
BLUE
+
+
VS
+
+
{detail.match.redScore}
+
RED
+
+
+
+
+ +
+ {detail.games.map((game) => ( + + ))} +
+
+ ); +} diff --git a/apps/web/src/pages/MatchDetailPage.tsx b/apps/web/src/pages/MatchDetailPage.tsx new file mode 100644 index 00000000..4cb92c48 --- /dev/null +++ b/apps/web/src/pages/MatchDetailPage.tsx @@ -0,0 +1,885 @@ +import { useEffect, useState } from 'react'; +import { useMutation, useQueryClient } from '@tanstack/react-query'; +import { Link, useNavigate, useParams } from 'react-router'; +import { + useAuction, + useDdragonManifest, + useMatch, + useMe, + usePollTournamentResult, + useTournamentCodeStats, +} from '../api/hooks'; +import { + buildDefaultPreferredPositions, + formatTierLabel, + getTierColorToken, + mapApiMatchToMatchDetail, + type MatchDetailView, + type ParticipantView, + type TeamView, +} from '../api/mappers'; +import { DEFAULT_COMMUNITY_ID, useAuthUserId } from '../config'; +import { apiFetch, ApiError } from '../lib/api'; +import { profileIconUrl } from '../lib/ddragon'; +import { positionIcon, positionLabel } from '../lib/league'; +import type { Position, TournamentCodeSlotView } from '../api/types'; + +function PosBadge({ pos, sub }: { pos: Position; sub?: boolean }) { + return ( + + + {positionLabel[pos]} + + ); +} + +function TierCell({ participant }: { participant: ParticipantView }) { + if (!participant.tier) { + return ( +
+ 티어 정보 없음 +
+ ); + } + + return ( +
+ + {formatTierLabel(participant.tier)} + + {participant.tier.leaguePoints > 0 && ( + + {participant.tier.leaguePoints}LP + + )} +
+ ); +} + +function statusBadge(status: MatchDetailView['status']) { + switch (status) { + case 'recruiting': + return { + label: '모집 중', + cls: 'bg-green-500/15 text-green-500 border-green-500/20', + }; + case 'team-built': + return { + label: '팀빌딩 완료', + cls: 'bg-amber-500/15 text-amber-500 border-amber-500/20', + }; + case 'in-progress': + return { + label: '진행 중', + cls: 'bg-blue-500/15 text-blue-400 border-blue-500/20', + }; + case 'finished': + return { + label: '종료', + cls: 'bg-base-content/8 text-base-content/40 border-base-content/10', + }; + } +} + +function ParticipantRow({ + participant, + index, + assignedPos, +}: { + participant: ParticipantView; + index: number; + assignedPos?: Position; +}) { + const { data: ddragon } = useDdragonManifest(); + return ( + + + {index + 1} + + + +
+ +
+
+ + {participant.summonerName} + + + #{participant.tag} + +
+ + + + + + {assignedPos ? ( + + + + ) : ( + <> + + + + + + + + )} + + ); +} + +function ParticipantTable({ + participants, + maxParticipants, + joined, + canJoin, + onJoin, + isJoining, +}: { + participants: ParticipantView[]; + maxParticipants: number; + joined: boolean; + canJoin: boolean; + onJoin: () => void; + isJoining: boolean; +}) { + return ( +
+
+

+ 참가자 ({participants.length}/{maxParticipants}) +

+ +
+
+ + + + + + + + + + + + {participants.map((participant, index) => ( + + ))} + +
#소환사현재 티어주 포지션부 포지션
+
+ {participants.length < maxParticipants && ( +
+ + {maxParticipants - participants.length}자리 남음 + +
+ )} +
+ ); +} + +function TeamCard({ + team, + isWinner, +}: { + team: TeamView; + isWinner?: boolean; +}) { + const borderColor = + team.side === 'blue' ? 'border-blue-500/25' : 'border-red-500/25'; + const headerBg = team.side === 'blue' ? 'bg-blue-500/8' : 'bg-red-500/8'; + const sideColor = team.side === 'blue' ? 'text-blue-400' : 'text-red-400'; + const accentBar = team.side === 'blue' ? 'bg-blue-500' : 'bg-red-500'; + + return ( +
+
+
+
+ + {team.name} + + {isWinner && ( + + WIN + + )} +
+
+ + + + + + + + + + + {team.participants.map((participant, index) => ( + + ))} + +
#소환사현재 티어포지션
+
+ ); +} + +function SideCard({ + title, + children, +}: { + title: string; + children: React.ReactNode; +}) { + return ( +
+
+

+ {title} +

+
+
{children}
+
+ ); +} + +function formatTournamentCodeExpiry(value: string | null) { + if (!value) return null; + return new Intl.DateTimeFormat('ko-KR', { + month: 'long', + day: 'numeric', + hour: '2-digit', + minute: '2-digit', + }).format(new Date(value)); +} + +function isExpiringSoon(value: string | null) { + if (!value) return false; + const expiresAt = new Date(value).getTime(); + return expiresAt - Date.now() <= 24 * 60 * 60 * 1000; +} + +function TournamentCodeDisplay({ slot }: { slot: TournamentCodeSlotView }) { + const [copied, setCopied] = useState(false); + const expired = slot.state === 'expired'; + const used = slot.state === 'used'; + const expiringSoon = isExpiringSoon(slot.expiresAt); + + async function copyCode() { + if (!slot.code) return; + await navigator.clipboard.writeText(slot.code); + setCopied(true); + window.setTimeout(() => setCopied(false), 1600); + } + + return ( +
+
+ + {expired ? '코드 만료' : slot.code} + + {slot.code && !expired && ( + + )} +
+
+ {used + ? '사용됨' + : expired + ? '운영자에게 새 코드를 요청해주세요.' + : `만료: ${formatTournamentCodeExpiry(slot.expiresAt)}`} +
+
+ ); +} + +function TournamentCodeList({ slots }: { slots: TournamentCodeSlotView[] }) { + return ( +
+ {slots.map((slot) => ( +
+ + {slot.gameNumber}경기 + + {slot.code ? ( + + ) : ( + + 발급 대기 중... 운영자가 코드를 채우면 자동으로 붙습니다. + + )} +
+ ))} +
+ ); +} + +function PoolStatsHint({ enabled }: { enabled: boolean }) { + const statsQuery = useTournamentCodeStats(DEFAULT_COMMUNITY_ID, enabled); + if (!enabled) return null; + const available = statsQuery.data?.available ?? 0; + const expiringSoon = statsQuery.data?.expiringSoon ?? 0; + + return ( +
+
+ 풀 잔여 {available}개 + {expiringSoon > 0 ? ` · 만료 임박 ${expiringSoon}개` : ''} +
+ + 코드 풀 관리 + +
+ ); +} + +function formatGameDuration(seconds: number) { + const minutes = Math.floor(seconds / 60); + const rest = seconds % 60; + return `${minutes}:${String(rest).padStart(2, '0')}`; +} + +function resultSideLabel(side: 'blue' | 'red') { + return side === 'blue' ? '블루팀' : '레드팀'; +} + +function resultSideClass(side: 'blue' | 'red') { + return side === 'blue' ? 'text-blue-400' : 'text-red-400'; +} + +function MatchResultPanel({ match }: { match: MatchDetailView }) { + if (!match.result) return null; + + const gamesByNumber = new Map( + match.result.games.map((game) => [game.gameNumber, game]), + ); + const gameNumbers = Array.from( + { length: match.gameCount }, + (_, index) => index + 1, + ); + + return ( +
+
+
+
+ {match.result.blueScore} +
+
+ 블루팀 +
+
+
+ VS +
+
+
+ {match.result.redScore} +
+
+ 레드팀 +
+
+
+
+ {match.result.winner + ? `${match.result.winner} 승리` + : `결과 수집 중 · ${match.result.games.length}/${match.gameCount}경기`} +
+
+ {gameNumbers.map((gameNumber) => { + const game = gamesByNumber.get(gameNumber); + return ( +
+ + {gameNumber}경기 + + {game ? ( +
+ + {resultSideLabel(game.winnerSide)} 승 + + + {game.riotMatchId} + +
+ ) : ( + 대기 중 + )} + + {game ? formatGameDuration(game.gameDuration) : '-'} + +
+ ); + })} +
+
+ ); +} + +export default function MatchDetailPage() { + const { id } = useParams(); + const navigate = useNavigate(); + const queryClient = useQueryClient(); + const authUserId = useAuthUserId(); + const matchQuery = useMatch(id, DEFAULT_COMMUNITY_ID); + const meQuery = useMe(); + const currentUser = + meQuery.data?.memberships.find( + (membership) => membership.community?._id === DEFAULT_COMMUNITY_ID, + )?.user ?? null; + const canUseMemberActions = Boolean(currentUser || authUserId); + const auctionQuery = useAuction(id, DEFAULT_COMMUNITY_ID); + const [blueCaptainUserId, setBlueCaptainUserId] = useState(''); + const [redCaptainUserId, setRedCaptainUserId] = useState(''); + const pollTournamentResultMutation = usePollTournamentResult( + DEFAULT_COMMUNITY_ID, + ); + + const joinMatchMutation = useMutation({ + mutationFn: () => + apiFetch(`/communities/${DEFAULT_COMMUNITY_ID}/matches/${id}/participants`, { + method: 'POST', + body: JSON.stringify({ + preferredPositions: + currentUser?.preferredPositions.length + ? currentUser.preferredPositions.slice(0, 5) + : buildDefaultPreferredPositions(), + }), + }), + onSuccess: async () => { + await Promise.all([ + queryClient.invalidateQueries({ + queryKey: ['match', DEFAULT_COMMUNITY_ID, id ?? null], + }), + queryClient.invalidateQueries({ + queryKey: ['matches', DEFAULT_COMMUNITY_ID], + }), + ]); + }, + }); + + const startAuctionMutation = useMutation({ + mutationFn: () => + apiFetch(`/communities/${DEFAULT_COMMUNITY_ID}/matches/${id}/auction`, { + method: 'POST', + body: JSON.stringify({ + captains: [ + { side: 'blue', userId: blueCaptainUserId }, + { side: 'red', userId: redCaptainUserId }, + ], + initialPoints: 1000, + maxTimerSeconds: 30, + }), + }), + onSuccess: async () => { + await Promise.all([ + queryClient.invalidateQueries({ + queryKey: ['match', DEFAULT_COMMUNITY_ID, id ?? null], + }), + queryClient.invalidateQueries({ + queryKey: ['auction', DEFAULT_COMMUNITY_ID, id ?? null], + }), + ]); + navigate(`/match/${id}/auction`); + }, + }); + + function handlePollTournamentResult() { + if (!id) return; + pollTournamentResultMutation.mutate(id, { + onSuccess: async () => { + await queryClient.invalidateQueries({ + queryKey: ['match', DEFAULT_COMMUNITY_ID, id ?? null], + }); + }, + }); + } + + useEffect(() => { + const participants = matchQuery.data?.participants ?? []; + if (!blueCaptainUserId && participants[0]) { + setBlueCaptainUserId(participants[0].userId); + } + if (!redCaptainUserId && participants[1]) { + setRedCaptainUserId(participants[1].userId); + } + }, [blueCaptainUserId, redCaptainUserId, matchQuery.data?.participants]); + + if (!DEFAULT_COMMUNITY_ID) { + return ( +
+ + `VITE_DEFAULT_COMMUNITY_ID` 설정이 필요합니다. + +
+ ); + } + + if (matchQuery.isLoading) { + return ( +
+ 매치 정보를 불러오는 중... +
+ ); + } + + if (matchQuery.error || !matchQuery.data) { + return ( +
+

내전을 찾을 수 없습니다

+ + 홈으로 돌아가기 + +
+ ); + } + + const match = mapApiMatchToMatchDetail(matchQuery.data); + const si = statusBadge(match.status); + const canManageAuction = + currentUser?.role === 'owner' || currentUser?.role === 'admin'; + const isCheckingPermissions = + meQuery.isLoading || (meQuery.isFetching && !meQuery.data); + const auctionNotStarted = + auctionQuery.error instanceof ApiError && auctionQuery.error.status === 404; + const showAuctionLink = Boolean(auctionQuery.data); + const canStartAuction = + canManageAuction && + match.status === 'recruiting' && + matchQuery.data.participants.length >= 2 && + auctionNotStarted && + blueCaptainUserId && + redCaptainUserId && + blueCaptainUserId !== redCaptainUserId; + + return ( +
+ + + + + 목록으로 + + +
+
+

+ {match.title} +

+ + {si.label} + +
+

{match.description}

+
+ {match.date} {match.time} + | + + {match.participants.length}/{match.maxParticipants}명 + + | + + {match.map} + +
+
+ + {joinMatchMutation.error instanceof Error && ( +
+ {joinMatchMutation.error.message} +
+ )} + + {startAuctionMutation.error instanceof Error && ( +
+ {startAuctionMutation.error.message} +
+ )} + + {pollTournamentResultMutation.error instanceof Error && ( +
+ {pollTournamentResultMutation.error.message} +
+ )} + + + +
+
+ {match.status === 'recruiting' ? ( + <> + joinMatchMutation.mutate()} + isJoining={joinMatchMutation.isPending} + /> + + {isCheckingPermissions ? ( +
+

+ 권한 확인 중 +

+

+ 관리자 권한을 확인한 뒤 경매 시작 버튼을 표시합니다. +

+
+ ) : canManageAuction ? ( +
+
+

+ 경매 시작 +

+

+ 두 팀장을 선택하면 경매를 시작할 수 있습니다. +

+
+ + {showAuctionLink ? ( + + 경매 페이지 열기 + + ) : ( +
+ + +
+ + {!canUseMemberActions && ( + + 로그인 또는 Dev Auth에 owner/admin User ID를 먼저 입력해주세요. + + )} +
+
+ )} +
+ ) : null} + + ) : ( +
+ {match.teams.map((team) => ( + + ))} + {showAuctionLink && ( +
+ + 경매 페이지 열기 + +
+ )} +
+ )} +
+ +
+ {match.schedule.length > 0 && ( + +
    + {match.schedule.map((item, index) => ( +
  • + + {item.time} + + {item.label} +
  • + ))} +
+
+ )} + + {(match.status === 'team-built' || match.status === 'in-progress') && ( + + + + + )} + + {canManageAuction && + (match.status === 'team-built' || match.status === 'in-progress') && ( + +

+ Riot match-v5에서 토너먼트 코드가 붙은 경기를 다시 찾습니다. +

+ +
+ )} + + {match.prizes.length > 0 && ( + +
    + {match.prizes.map((prize, index) => ( +
  • + ▸ + {prize} +
  • + ))} +
+
+ )} + + {match.notices.length > 0 && ( + +
    + {match.notices.map((notice, index) => ( +
  • + • + {notice} +
  • + ))} +
+
+ )} +
+
+
+ ); +}