summaryrefslogtreecommitdiff
path: root/frontend/src/components/playerList.js
blob: cc2476682c74d1d08116e5ac6d67c55925838cfb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
import React from 'react';
import { Text } from 'rebass';
import { Flex } from 'reflexbox';

export const PlayerList = ({ players }) => (
  <div>
    {players.map(player => {
      return (
        <Flex key={player.index}>
          <Text>{player.displayName}</Text>
          <Text>({player.username})</Text>
        </Flex>
      );
    })}
  </div>
);
bgstack15