const initState = {
  listSubjects: [],
};

const subjectReducer = (state = initState, action) => {
  switch (action.type) {
    case 'LIST_SUBJECT':
      return { ...state, listSubjects: action.payload };
    default:
      return state;
  }
};

export default subjectReducer;
