This repository has been archived on 2024-10-29. You can view files and clone it, but cannot push or open issues or pull requests.
Files
Liam 37e2b305ff
All checks were successful
Deploy SSR / deploy (push) Successful in 1m16s
cleanup and remove web worker tests
2024-09-13 20:04:04 +01:00

33 lines
766 B
TypeScript

import ScoreSaberScore from "@/common/service/types/scoresaber/scoresaber-score";
import Image from "next/image";
import Link from "next/link";
type Props = {
score: ScoreSaberScore;
};
export default function LeaderboardPlayer({ score }: Props) {
const player = score.leaderboardPlayerInfo;
return (
<div className="flex gap-2">
<Image
unoptimized
src={player.profilePicture}
width={48}
height={48}
alt="Song Artwork"
className="rounded-md min-w-[48px]"
priority
/>
<Link
href={`/player/${player.id}`}
target="_blank"
className="h-fit hover:brightness-75 transition-all transform-gpu"
>
<p>{player.name}</p>
</Link>
</div>
);
}