summaryrefslogtreecommitdiff
path: root/frontend/src/components/game-browser/PlayerCount.jsx
blob: 9a5306d64d5b4867a54df8aff32235e9249f96a2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
//@flow
import { Icon } from '@blueprintjs/core';
import * as React from 'react';
import './PlayerCount.css';

type PlayerCountProps = {
  nbPlayers: number,
}

export const PlayerCount = ({nbPlayers}: PlayerCountProps) => <div title='Number of players'>
  <Icon className="playerCountIcon" icon="people" title={false} />
  <span className="playerCount"> {nbPlayers}</span>
</div>;
bgstack15