// @flow import React from 'react'; import { Flex } from 'reflexbox'; import { Text, Space, Button } from 'rebass'; import type { List } from 'immutable'; import type { Game } from '../models/games'; const GameList = ({ games, joinGame }: { games: List, joinGame: (gameId: string) => void }) => (
{games.map((game: Game, index: number) => { return ( {game.name} ); })}
); export default GameList;