{"size": 304, "ext": "js", "max_stars_repo_path": "unlock-app/src/reducers/networkReducer.js", "max_stars_repo_name": "jedahan/unlock", "max_stars_repo_stars_event_min_datetime": "2019-06-26T06:49:13.000Z", "max_stars_repo_stars_event_max_datetime": "2020-01-23T23:46:06.000Z", "max_issues_repo_path": "unlock-app/src/reducers/networkReducer.js", "max_issues_repo_name": "jedahan/unlock", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "unlock-app/src/reducers/networkReducer.js", "max_forks_repo_name": "jedahan/unlock", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": 2, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 15.2, "max_line_length": 58, "alphanum_fraction": 0.6217105263}
import { SET_NETWORK } from '../actions/network'

export const initialState = {
  name: 0,
}

const networkReducer = (state = initialState, action) => {
  if (action.type === SET_NETWORK) {
    return {
      name: action.network,
    }
  }

  return {
    ...state,
  }
}

export default networkReducer
