import { TenantTypeEnums } from "../enums/unitySystemEnums.mjs";
import { create } from "zustand";
import { devtools } from "zustand/middleware";
//#region src/stores/tenantStore.ts
const useTenantStore = create()(devtools((set) => ({
	currentTenant: null,
	setCurrentTenant: (currentTenant) => set((state) => {
		return {
			currentTenant,
			isProductTenant: currentTenant?.tenantType === TenantTypeEnums.Product
		};
	}),
	isProductTenant: false
})));
//#endregion
export { useTenantStore };

//# sourceMappingURL=tenantStore.mjs.map