codeatlas-enterprise / frontend /src /store /useAnalysisStore.js
Shivam311's picture
feat: CodeAtlas Enterprise - IBM Bob Engineering Intelligence Platform
3a7842d
Raw
History Blame Contribute Delete
521 Bytes
import { create } from 'zustand';
export const useAnalysisStore = create((set) => ({
activeDocType: 'onboarding',
lastError: null,
serviceExplanation: null,
isExplainingService: false,
setActiveDocType: (docType) => set({ activeDocType: docType }),
setLastError: (error) => set({ lastError: error }),
clearError: () => set({ lastError: null }),
setServiceExplanation: (explanation) => set({ serviceExplanation: explanation }),
setExplainingService: (value) => set({ isExplainingService: value }),
}));