"use client"; import Image from "next/image"; import { getChampionImageUrl } from "@/lib/champion-data"; /** Win/loss message with optional new game button */ export default function GameOver({ isWon, target, guessCount, onNewGame }) { return (
You found {target.name} in{" "} {guessCount}{" "} guess{guessCount > 1 ? "es" : ""}!
) : ( <>The champion was {target.name}