import { create } from 'zustand';
import { devtools } from 'zustand/middleware';
import { TenantTypeEnums } from '../enums/unitySystemEnums';
export const useTenantStore = create()(devtools((set) => ({
    currentTenant: null,
    setCurrentTenant: (currentTenant) => set((state) => {
        const isProductTenant = (currentTenant === null || currentTenant === void 0 ? void 0 : currentTenant.tenantType) === TenantTypeEnums.Product;
        return { currentTenant, isProductTenant };
    }),
    isProductTenant: false
})));
//# sourceMappingURL=tenantStore.js.map