import { observable , makeObservable } from 'mobx' ; import { injectable } from '@cloudbeaver/core-di' ; import type { IActiveView } from './IActiveView' ; import type { IView } from './IView' ; @ injectable ( ) export class ViewService { get activeView ( ) : IActiveView < any > | null { return this . view ?. getView ( ) || null ; } private view : IView < any > | null = null ; constructor ( ) { this . view = null ; makeObservable < this , 'view' > ( this , { view : observable . ref , } ) ; } setView ( view ) { this . view = view ; } blur ( provider ) { } }