import { ScoresaberPlayer } from "@/schemas/scoresaber/player"; import { useSettingsStore } from "@/store/settingsStore"; import { formatNumber } from "@/utils/numberUtils"; import { useStore } from "zustand"; import Avatar from "../Avatar"; import CountyFlag from "../CountryFlag"; import Label from "../Label"; type PlayerRankingProps = { player: ScoresaberPlayer; showCountryFlag?: boolean; }; export default function PlayerRankingMobile({ player, showCountryFlag = true, }: PlayerRankingProps) { const settingsStore = useStore(useSettingsStore, (store) => store); return (
#{formatNumber(player.rank)}
{player.name}