2025-05-23 13:14:26 +03:00

12 lines
279 B
TypeScript

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