import { create } from 'zustand';

interface FlashNavigationState {
  shouldNavigateToCart: boolean;
  setShouldNavigateToCart: (value: boolean) => void;
  reset: () => void;
}

export const useFlashNavigationStore = create<FlashNavigationState>((set) => ({
  shouldNavigateToCart: false,
  setShouldNavigateToCart: (value) => set({ shouldNavigateToCart: value }),
  reset: () => set({ shouldNavigateToCart: false }),
}));
