import ScoreSaberPlayer from "@/common/data-fetcher/types/scoresaber/scoresaber-player";
import { formatNumberWithCommas } from "@/common/number-utils";
import { GlobeAmericasIcon } from "@heroicons/react/24/solid";
import Card from "../card";
import CountryFlag from "../country-flag";
import { Avatar, AvatarImage } from "../ui/avatar";
import ClaimProfile from "./claim-profile";
import PlayerStats from "./player-stats";
const playerData = [
{
showWhenInactiveOrBanned: false,
icon: () => {
return
#{formatNumberWithCommas(player.rank)}
; }, }, { showWhenInactiveOrBanned: false, icon: (player: ScoreSaberPlayer) => { return#{formatNumberWithCommas(player.countryRank)}
; }, }, { showWhenInactiveOrBanned: true, render: (player: ScoreSaberPlayer) => { return{formatNumberWithCommas(player.pp)}pp
; }, }, ]; type Props = { player: ScoreSaberPlayer; }; export default function PlayerHeader({ player }: Props) { return ({player.name}
Inactive Account
} {player.banned &&Banned Account
}