import { create } from 'zustand';

interface NavigationState {
  isNavigatedFromHome: boolean;
  setNavigatedFromHome: (value: boolean) => void;
  selectedStoreId: number | null;
  setSelectedStoreId: (storeId: number | null) => void;
}

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