Updated title

This commit is contained in:
2025-09-27 21:34:59 +02:00
parent 818f1d420a
commit 1bbad447e6
2 changed files with 21 additions and 1 deletions

View File

@@ -15,7 +15,7 @@ import z from "zod"
import { PlayerPageLoadText, PlayerStats } from "./_client"
import Sidebar from "./_components/sidebar"
export async function generateMetadata({ params }: { params: Promise<{ ign: string }> }): Promise<Metadata> {
export async function generateMetadata({ params }: PageProps<"/player/[ign]">): Promise<Metadata> {
const { ign } = await params
const user = await getUuid(ign)
return { title: user !== null ? `${user.name}'s Stats` : "Player not found" }