summaryrefslogtreecommitdiff
path: root/frontend/src/containers/GameBrowser/actions.js
blob: 376973b41f357cac36ec78c36082609d498bb046 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
import { NEW_GAME, JOIN_GAME, CREATE_GAME } from './constants'

export const newGame = (game) => ({
  type: NEW_GAME,
  game
})

export const joinGame = (id) => ({
  type: JOIN_GAME,
  id
})

export const createGame = (name) => ({
  type: CREATE_GAME,
  name
})
bgstack15