import { type StateCreator } from 'zustand'; export type SlotSlice = { setSlotId: (slot: null | string) => void; slotId: null | string; }; export const createSlotSlice: StateCreator = (set) => ({ setSlotId: (slot) => set({ slotId: slot }), slotId: null, });