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 PlayerListItemProps = { player: ApiPlayer, isOwner: boolean, isUser: boolean, }; const PlayerListItem = ({player, isOwner, isUser}: PlayerListItemProps) => ( {isOwner && } {isUser && } {player.displayName} {player.username} ); type PlayerListProps = { players: List, owner: string, currentPlayer: ApiPlayer, }; export const PlayerList = ({players, owner, currentPlayer}: PlayerListProps) => ( {players.map((player: ApiPlayer) => )}
);