15 lines
372 B
TypeScript
15 lines
372 B
TypeScript
import { create } from 'zustand'
|
|
|
|
interface SlotStore {
|
|
slotId: number | null
|
|
storeId: number | null
|
|
setSlotId: (id: number | null) => void
|
|
setStoreId: (id: number | null) => void
|
|
}
|
|
|
|
export const useSlotStore = create<SlotStore>((set) => ({
|
|
slotId: null,
|
|
storeId: null,
|
|
setSlotId: (id) => set({ slotId: id }),
|
|
setStoreId: (id) => set({ storeId: id }),
|
|
}))
|