import { Game } from '../../lib/types'; import { CoverAspect } from '../../hooks/useSettings'; import { GameCard } from './GameCard'; interface Props { games: Game[]; aspect: CoverAspect; getThumbnail: (id: string) => string | null; onOpen: (game: Game) => void; onPrimary: (game: Game) => void; onCancelDownload: (game: Game) => void; } export const GameGrid = ({ games, aspect, getThumbnail, onOpen, onPrimary, onCancelDownload, }: Props) => (