summaryrefslogtreecommitdiff
path: root/frontend/src/components/game-browser/PlayerCount.tsx
blob: 64028f68f4625b0e3d8b92ad9f954a4ea4acf6b2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
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