text: import Constants from "../constants";
  
  const defaultState = {
    collapsed: false,
    showData:''
  };
  
  const commonReducer = (state = defaultState, action) => {
    switch (action.type) {
      case Constants.CHANGE_COLLAPSED:
        return { ...state, collapsed: !state.collapsed };
      case Constants.CHANGE_DATA:
        return { ...state, showData: action.showData };
      default:
        return state;
    }
  };
  export default commonReducer;
  