export const toggleDisplayMode: ReducerFuncType = (state, { payload }) => ({
  ...state,
  displayMode: payload,
});

export const setNavbarState: ReducerFuncType = (state, { payload }) => ({
  ...state,
  navbarState: payload,
});

export const setSidebarState: ReducerFuncType = (state, { payload }) => ({
  ...state,
  sidebarState: payload,
});

export const setMarkupTool: ReducerFuncType = (state, { payload }) => ({
  ...state,
  markupToolState: payload,
});

export const setInfo: ReducerFuncType = (state, { payload }) => ({
  ...state,
  info: payload,
});

export const setLoading: ReducerFuncType = (state, { payload }) => ({
  ...state,
  isLoading: payload,
});
