Spaces:
Sleeping
Sleeping
| 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 }), | |
| })); | |