import { useState } from "react"; interface GameImageProps { game: string; } export function GameImage({ game }: GameImageProps) { const [error, setError] = useState(false); if (error) { return (
No Image Available
); } return (
{`${game} setError(true)} style={{ width: "100%", height: "auto", borderRadius: "8px", marginTop: "0.5rem", objectFit: "cover", }} />
); }