import { create } from 'zustand';
import { devtools } from 'zustand/middleware';
export const useLookupsStore = create()(devtools((set) => ({
    lookupApiMethodId: '',
    setLookupApiMethodId: (apiMethodId) => set((state) => ({ lookupApiMethodId: apiMethodId })),
    lookupsDataMap: null,
    setLookupsDataMap: (lookupsDataMap, replace = false) => {
        if (replace) {
            set((state) => ({
                lookupsDataMap: lookupsDataMap
            }));
        }
        else {
            set((state) => ({
                lookupsDataMap: Object.assign(Object.assign({}, state.lookupsDataMap), lookupsDataMap)
            }));
        }
    }
})));
//# sourceMappingURL=lookupsStore.js.map