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

12 lines
289 B
TypeScript

import { type StateCreator } from 'zustand';
export type MasterSlice = {
masterId: null | string;
setMasterId: (id: null | string) => void;
};
export const createMasterSlice: StateCreator<MasterSlice> = (set) => ({
masterId: null,
setMasterId: (id) => set({ masterId: id }),
});