import * as type from './actionTypes'

export default (state = {
  clickCount: 0
}, action) => {

  switch (action.type) {

    case type.MAIN_CLICK:
      return Object.assign({}, state, {
        clickCount: state.clickCount + 1
      })

    default:
      return state

  }
}
