import type { Player } from '../types/game'; import { SEAT_COLOURS } from '../constants'; interface GameOverOverlayProps { show: boolean; winner: Player | null; reason: string; players: Player[]; } export default function GameOverOverlay({ show, winner, reason, players }: GameOverOverlayProps) { if (!show) return null; return (
{winner && (

{winner.name} Wins!

)}

{reason}

); }