import { Tag } from '@blueprintjs/core'; import { Intent } from '@blueprintjs/core'; import * as React from 'react'; import { ApiGameState } from '../../api/model'; type GameStatusProps = { state: ApiGameState, } export const GameStatus = ({state}: GameStatusProps) => ( {state} ); const statusIntents = { 'LOBBY': Intent.SUCCESS, 'PLAYING': Intent.WARNING, };