import { Game } from '../../types/game'; interface GameCardProps { game: Game; onEdit?: (game: Game) => void; onDelete?: (id: string) => void; } export default function GameCard({ game, onEdit, onDelete }: GameCardProps): JSX.Element { return (

{game.title}

{game.slug}

{game.description &&

{game.description}

}

Added: {new Date(game.createdAt).toLocaleDateString()}

{onEdit && ( )} {onDelete && ( )}
); }