{"size": 249, "ext": "js", "max_stars_repo_path": "app/javascript/reducers/accounts-reducer.js", "max_stars_repo_name": "fernandors87/equity_flow", "max_stars_repo_stars_event_min_datetime": "2019-03-20T16:49:27.000Z", "max_stars_repo_stars_event_max_datetime": "2019-03-20T16:49:27.000Z", "max_issues_repo_path": "app/javascript/reducers/accounts-reducer.js", "max_issues_repo_name": "fernandors87/equity_flow", "max_issues_repo_issues_event_min_datetime": "2018-01-02T20:49:17.000Z", "max_issues_repo_issues_event_max_datetime": "2019-03-20T16:49:18.000Z", "max_forks_repo_path": "app/javascript/reducers/accounts-reducer.js", "max_forks_repo_name": "fernandors87/equity_flow", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": 1, "max_issues_count": 18, "max_forks_count": null, "avg_line_length": 22.6363636364, "max_line_length": 72, "alphanum_fraction": 0.686746988}
import { ACCOUNTS_RECEIVED } from 'actions/accounts-actions'

export default function accountsReducer(state = {}, { type, payload }) {
  switch (type) {
    case ACCOUNTS_RECEIVED:
      return payload.accounts
    default:
      return state
  }
}
