//@flow import { Icon, Text } from '@blueprintjs/core' import { List } from 'immutable'; import * as React from 'react'; import { Flex } from 'reflexbox'; import { Player } from '../../models/players'; type PlayerListProps = { players: List, owner: string, currentPlayer: Player, }; const PlayerListItem = ({player, isOwner, isUser}) => ( {isOwner && } {isUser && } {player.displayName} {player.username} ); export const PlayerList = ({players, owner, currentPlayer}: PlayerListProps) => ( {players.map(player => )}
);