Files
evening_detective_screen/src/utils/game-status.ts
T
2026-10-19 01:47:23 +07:00

16 lines
511 B
TypeScript

import type { GameCommand, GameStatus } from '../types/online.js'
export const gameStatuses = {
draft: { label: 'Черновик', type: 'info' },
run: { label: 'Идёт', type: 'success' },
pause: { label: 'Пауза', type: 'warning' },
finish: { label: 'Завершена', type: 'info' },
} as const
export const gameCommands: Record<GameStatus, GameCommand[]> = {
draft: ['start', 'finish'],
run: ['pause', 'finish', 'reset'],
pause: ['play', 'finish', 'reset'],
finish: ['reset'],
}