import { Separator } from "@/components/ui/separator" import { formatNumber } from "@/lib/formatters" import { getWoolGamesLevel, getWoolGamesPrestige, getWoolGamesPretigeIcon } from "@/lib/hypixel/woolgames/general" import { NonNullStats } from "@/lib/schema/player" import Multicolored from "../../_components/Multicolored" import { EmptyStats, GeneralStats } from "../stats-components" import { WoolGamesCaptureTheWool, WoolGamesSheepWars, WoolGamesWoolWars } from "./modes" import WoolGamesProgress from "./progress" import WoolGamesGeneralStats from "./stats" import WoolGamesWoolWarsStatTable from "./table" export default function WoolGamesStats({ stats }: { stats: NonNullStats["WoolGames"] }) { if (!stats) return const level = getWoolGamesLevel(stats.progression?.experience) const icon = getWoolGamesPretigeIcon(stats.wool_wars_prestige_icon) const pres = getWoolGamesPrestige(level) const kills = (stats.capture_the_wool?.stats?.kills || 0) + (stats.sheep_wars?.stats?.kills || 0) + (stats.wool_wars?.stats?.kills || 0) const wins = (stats.capture_the_wool?.stats?.participated_wins || 0) + (stats.sheep_wars?.stats?.wins || 0) + (stats.wool_wars?.stats?.wins || 0) return ( Level

, stat: }, { title:

Kills

, stat:

{formatNumber(kills)}

}, { title:

Wins

, stat:

{formatNumber(wins)}

} ]} >
) }