require('immutable'); import * as ScorebarActions from '../../actions/board/scorebar.actions'; import Values from '../Values'; import { SETTINGS } from '../../App'; const reducer = (state = { current: 100, high: 999, lives: SETTINGS.LIVES }, action) => { if (action.type !== ScorebarActions.SCOREBAR_ACTION) { return state; } switch (action.action) { case ScorebarActions.UPDATE: return { current: state.current + 10, high: 999 }; } return state; }; export default reducer;