"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 (

{isWon ? "You got it!" : "Game Over"}

{isWon ? (

You found {target.name} in{" "} {guessCount}{" "} guess{guessCount > 1 ? "es" : ""}!

) : ( <>

The champion was {target.name}

{target.name} )} {onNewGame && ( )}
); }