import { create } from "zustand";
import { devtools } from "zustand/middleware";
//#region src/stores/lookupsStore.ts
const useLookupsStore = create()(devtools((set) => ({
	lookupApiMethodId: "",
	setLookupApiMethodId: (apiMethodId) => set((state) => ({ lookupApiMethodId: apiMethodId })),
	lookupsDataMap: null,
	setLookupsDataMap: (lookupsDataMap, replace = false) => {
		if (replace) set((state) => ({ lookupsDataMap }));
		else set((state) => ({ lookupsDataMap: {
			...state.lookupsDataMap,
			...lookupsDataMap
		} }));
	}
})));
//#endregion
export { useLookupsStore };

//# sourceMappingURL=lookupsStore.mjs.map