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