{"size": 571, "ext": "js", "max_stars_repo_path": "client/reducers/modeReducer.js", "max_stars_repo_name": "zhaluza/visual-css", "max_stars_repo_stars_event_min_datetime": "2020-06-29T17:20:45.000Z", "max_stars_repo_stars_event_max_datetime": "2021-11-30T18:40:56.000Z", "max_issues_repo_path": "client/reducers/modeReducer.js", "max_issues_repo_name": "zhaluza/visual-css", "max_issues_repo_issues_event_min_datetime": "2020-06-13T19:27:42.000Z", "max_issues_repo_issues_event_max_datetime": "2022-02-27T01:00:20.000Z", "max_forks_repo_path": "client/reducers/modeReducer.js", "max_forks_repo_name": "zhaluza/visual-css", "max_forks_repo_forks_event_min_datetime": "2020-03-10T21:10:47.000Z", "max_forks_repo_forks_event_max_datetime": "2021-01-07T16:34:24.000Z"}
{"max_stars_count": 7, "max_issues_count": 4, "max_forks_count": 2, "avg_line_length": 20.3928571429, "max_line_length": 55, "alphanum_fraction": 0.5674255692}
import * as types from '../constants/actionTypes';
const initialState = {
  mode: 'box-shadow',
};

const modeReducer = (state = initialState, action) => {
  switch (action.type) {
    case types.SET_BOX_SHADOW_MODE:
      return {
        ...state,
        mode: 'box-shadow',
      };
    case types.SET_BORDER_RADIUS_MODE:
      return {
        ...state,
        mode: 'border-radius',
      };
    case types.SET_ROTATE_3D_MODE:
      return {
        ...state,
        mode: 'rotate-3d',
      };
    default:
      return state;
  }
};
export default modeReducer;
