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 setTool: ReducerFuncType = (state, { payload }) => ({ ...state, toolState: payload, }); export const setInfo: ReducerFuncType = (state, { payload }) => ({ ...state, info: payload, }); export const setLoading: ReducerFuncType = (state, { payload }) => ({ ...state, isLoading: payload, });