import Image from "next/image"; import Link from "next/link"; import ScoreSaberScoreToken from "@ssr/common/types/token/scoresaber/score-saber-score-token"; import ScoreSaberPlayer from "@ssr/common/types/player/impl/scoresaber-player"; type Props = { /** * The player who set the score. */ player?: ScoreSaberPlayer; /** * The score to display. */ score: ScoreSaberScoreToken; }; export default function LeaderboardPlayer({ player, score }: Props) { const scorePlayer = score.leaderboardPlayerInfo; const isPlayerWhoSetScore = player && scorePlayer.id === player.id; return (
{scorePlayer.name}