diff options
Diffstat (limited to 'sw-ui/src/components/game-browser/GameStatus.tsx')
-rw-r--r-- | sw-ui/src/components/game-browser/GameStatus.tsx | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/sw-ui/src/components/game-browser/GameStatus.tsx b/sw-ui/src/components/game-browser/GameStatus.tsx deleted file mode 100644 index 5f237258..00000000 --- a/sw-ui/src/components/game-browser/GameStatus.tsx +++ /dev/null @@ -1,17 +0,0 @@ -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) => ( - <Tag minimal intent={statusIntents[state]}>{state}</Tag> -); - -const statusIntents = { - 'LOBBY': Intent.SUCCESS, - 'PLAYING': Intent.WARNING, -}; |