src/components/molecules/GameList/GameList.tsx
import { Stack } from '@chakra-ui/react';
import { GameListItem } from '~/components/atoms';
type Props = {
games: Game[];
};
export const GameList: React.FC<Props> = ({ games }) => (
<Stack spacing={8}>
{games.map((game: Game) => (
<GameListItem key={game.slug} game={game} />
))}
</Stack>
);