import { create } from 'zustand'

interface FlashNavigationStore {
  shouldNavigateToCart: boolean
  setShouldNavigateToCart: (value: boolean) => void
}

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