{"size": 459, "ext": "js", "max_stars_repo_path": "src/redux/reducers/employees.js", "max_stars_repo_name": "lighuenlacamoire/TrainingCourse", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "src/redux/reducers/employees.js", "max_issues_repo_name": "lighuenlacamoire/TrainingCourse", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "src/redux/reducers/employees.js", "max_forks_repo_name": "lighuenlacamoire/TrainingCourse", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 18.36, "max_line_length": 68, "alphanum_fraction": 0.5991285403}
/* eslint-disable import/no-anonymous-default-export */

/** EMPLOYEE_LIST */
export const EMPLOYEE_LIST = 'capacitacion/employees/EMPLOYEE_LIST';
/**
 * Estado inicial
 */
export const initialState = {
  list: []
};

export default (state = initialState, action) => {
  switch (action.type) {
    case EMPLOYEE_LIST: {
      const { data } = action;
      return {
        ...state,
        list: data,
      };
    }

    default:
      return state;
  }
};