import DisplayName from "@/components/player/displayname" import { Card, CardContent } from "@/components/ui/card" import { getGuild } from "@/lib/hypixel/api/guild" import { getUuid } from "@/lib/hypixel/api/mojang" import { getPlayer } from "@/lib/hypixel/api/player" import { getExactLevel } from "@/lib/hypixel/level" import { Loader2Icon } from "lucide-react" import { Suspense } from "react" import Sidebar from "./_components/Sidebar" import BedwarsStats from "./_stats/bedwars/bedwars" import SkyWarsStats from "./_stats/skywars/skywars" export default async function PlayerPage({ params }: { params: Promise<{ ign: string }> }) { const { ign } = await params return (

{`Loading stats for ${ign}`}

} >
) } async function SuspendedPage({ ign: pign }: { ign: string }) { const uuid = await getUuid(pign) if (!uuid) { return (

Player not found

) } const player = await getPlayer(uuid) if (!player) { return (

Player not found

) } const guild = await getGuild(uuid) const level = getExactLevel(player.networkExp) return (

{player.uuid}

{player.stats !== undefined ? (
) : (

No stats avaiable. If they are staff then they most likely have their api off.

)}
) }