export const BOARD_ACTION = 'BOARD_ACTION'; export const GENERATE = 'GENERATE'; export const UPDATE = 'UPDATE'; export const HIDE = 'HIDE'; export const SHOW = 'SHOW'; export const NEXT_LEVEL = 'NEXT_LEVEL'; export const generateValues = () => ({ type: BOARD_ACTION, action: GENERATE }); export const updateValue = (index, value) => ({ type: BOARD_ACTION, action: UPDATE, index: index, value: value }); export const showValue = (index) => ({ type: BOARD_ACTION, action: SHOW, index: index }); export const hideValue = (index) => ({ type: BOARD_ACTION, action: HIDE, index: index }); export const nextLevel = () => ({ type: BOARD_ACTION, action: NEXT_LEVEL });