midorimici/fairy-chess-online

View on GitHub
src/components/molecules/GameList/GameList.tsx

Summary

Maintainability
A
0 mins
Test Coverage
A
100%
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>
);