import { create } from 'zustand';
const STEPS = ['wallet', 'defaults'];
export const useOnboardingStore = create((set, get) => ({
    isOpen: false,
    currentStep: 'wallet',
    manageMode: false,
    isLoading: false,
    error: null,
    authStatus: null,
    setOpen: (isOpen) => set({ isOpen }),
    setStep: (currentStep) => set({ currentStep }),
    setManageMode: (manageMode) => set({ manageMode }),
    setLoading: (isLoading) => set({ isLoading }),
    setError: (error) => set({ error }),
    setAuthStatus: (authStatus) => set({ authStatus }),
    nextStep: () => {
        const { currentStep } = get();
        const currentIndex = STEPS.indexOf(currentStep);
        if (currentIndex < STEPS.length - 1) {
            set({ currentStep: STEPS[currentIndex + 1] });
        }
    },
    prevStep: () => {
        const { currentStep } = get();
        const currentIndex = STEPS.indexOf(currentStep);
        if (currentIndex > 0) {
            set({ currentStep: STEPS[currentIndex - 1] });
        }
    },
    reset: () => set({
        isOpen: false,
        currentStep: 'wallet',
        manageMode: false,
        isLoading: false,
        error: null,
    }),
}));
//# sourceMappingURL=onboardingStore.js.map