import { create } from 'zustand'

interface NavigationStore {
  isNavigatedFromHome: boolean
  selectedStoreId: number | null
  setNavigatedFromHome: (value: boolean) => void
  setSelectedStoreId: (id: number | null) => void
}

export const useNavigationStore = create<NavigationStore>((set) => ({
  isNavigatedFromHome: false,
  selectedStoreId: null,
  setNavigatedFromHome: (value) => set({ isNavigatedFromHome: value }),
  setSelectedStoreId: (id) => set({ selectedStoreId: id }),
}))
