import { Stack, Group, Text, ThemeIcon, Box, Center } from "@mantine/core"; import { CrownIcon, MedalIcon } from "@phosphor-icons/react"; import { Tournament } from "../types"; interface PodiumProps { tournament: Tournament; } export const Podium = ({ tournament }: PodiumProps) => { if (!tournament.first_place) return; return ( {tournament.first_place && ( {tournament.first_place.name} {tournament.first_place.players?.map((player) => ( {player.first_name} {player.last_name} ))} )} {tournament.second_place && ( {tournament.second_place.name} {tournament.second_place.players?.map((player) => ( {player.first_name} {player.last_name} ))} )} {tournament.third_place && ( {tournament.third_place.name} {tournament.third_place.players?.map((player) => ( {player.first_name} {player.last_name} ))} )} ); };