import { OverlayPlayer } from "@/overlay/type/overlayPlayer"; import { formatNumber } from "@/utils/numberUtils"; import { GlobeAltIcon } from "@heroicons/react/20/solid"; import Image from "next/image"; import CountyFlag from "../CountryFlag"; type PlayerStatsProps = { player: OverlayPlayer; settings: any; }; const leaderboardImages: Record = { scoresaber: "/assets/logos/scoresaber.png", beatleader: "/assets/logos/beatleader.png", }; export default function PlayerStats({ player, settings }: PlayerStatsProps) { return (
Player profile picture
Leaderboard logo

{formatNumber(player.pp, 2)}pp

#{formatNumber(player.rank)}

#{formatNumber(player.countryRank)}

); }