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