diff --git a/src/app/(stats)/player/[ign]/_stats/woolgames/woolgames.tsx b/src/app/(stats)/player/[ign]/_stats/woolgames/woolgames.tsx new file mode 100644 index 0000000..8dc5350 --- /dev/null +++ b/src/app/(stats)/player/[ign]/_stats/woolgames/woolgames.tsx @@ -0,0 +1,27 @@ +import { AccordionContent, AccordionItem, AccordionTrigger } from "@/components/ui/accordion" +import { Card, CardContent } from "@/components/ui/card" +import { Separator } from "@/components/ui/separator" +import { NonNullStats } from "@/lib/schema/player" +import CollapsedStats from "../../_components/CollapsedStats" + +export default function WoolGamesStats({ stats }: { stats: NonNullStats["WoolGames"] }) { + if (!stats) return null + + return ( + + + + +

Wool Games

+
+ +
+
+ + + +
+
+
+ ) +} diff --git a/src/app/(stats)/player/[ign]/page.tsx b/src/app/(stats)/player/[ign]/page.tsx index 6f13fee..15e7f2d 100644 --- a/src/app/(stats)/player/[ign]/page.tsx +++ b/src/app/(stats)/player/[ign]/page.tsx @@ -21,6 +21,7 @@ import PitStats from "./_stats/pit/pit" import SkyWarsStats from "./_stats/skywars/skywars" import TNTGamesStats from "./_stats/tnt-games/tnt-games" import UHCStats from "./_stats/uhc/uhc" +import WoolGamesStats from "./_stats/woolgames/woolgames" export async function generateMetadata({ params }: { params: Promise<{ ign: string }> }): Promise { const { ign } = await params @@ -125,6 +126,7 @@ async function SuspendedPage({ params }: Pick, "param + ) : diff --git a/src/lib/schema/player.ts b/src/lib/schema/player.ts index a4def76..350597f 100644 --- a/src/lib/schema/player.ts +++ b/src/lib/schema/player.ts @@ -9,7 +9,8 @@ import { pitStats, skywarsStatsSchema, tntGamesStatsSchema, - uhcSchema + uhcSchema, + woolGamesStatsSchema } from "./stats" export const playerSchema = z.looseObject({ @@ -34,7 +35,8 @@ export const playerSchema = z.looseObject({ Pit: pitStats.optional(), TNTGames: tntGamesStatsSchema.optional(), Walls3: megawallsStats.optional(), - MCGO: copsAndCrimsStatsSchema.optional() + MCGO: copsAndCrimsStatsSchema.optional(), + WoolGames: woolGamesStatsSchema.optional() }).transform(({ Walls3, MCGO, ...rest }) => { return { MegaWalls: Walls3, diff --git a/src/lib/schema/stats.ts b/src/lib/schema/stats.ts index 38d1514..dbd246a 100644 --- a/src/lib/schema/stats.ts +++ b/src/lib/schema/stats.ts @@ -723,3 +723,5 @@ export const copsAndCrimsStatsSchema = z.looseObject({ sniper_charge_bonus: z.number().default(0), ...copsAndCrimsGunUpgrades() }) + +export const woolGamesStatsSchema = z.looseObject({})