import { ScoresaberPlayer } from "@/schemas/scoresaber/player"; import { useSettingsStore } from "@/store/settingsStore"; import { formatNumber } from "@/utils/number"; import ReactCountryFlag from "react-country-flag"; import { useStore } from "zustand"; import Avatar from "../Avatar"; 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)}

{showCountryFlag && ( )}

{player.name}

); }