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