import { START_GAME } from './constants';

export const isPlaying = (state = false, action) => {
  switch (action.type) {
    case START_GAME:
      return true;
    default:
      return state;
  }
};

import { START_GAME } from './constants';

export const isPlaying = (state = false, action) => {
  switch (action.type) {
    case START_GAME:
      return true;
    default:
      return state;
  }
};

export const getIsPlaying = (state) => state.isPlaying;

add selector getIsPlaying