const INITIAL_STATE = {
  offline: false
}

export default (state = INITIAL_STATE, action) => {
  switch (action.type) {
    case 'UPDATE_OFFLINE':
      return {
        ...state,
        offline: action.offline
      }
    default:
      return state
  }
}
