import { ObservableCategorySelectorScreen } from '@ulangi/ulangi-observable' ; import { CategoryFormDelegate } from '../../delegates/category/CategoryFormDelegate' ; import { CategorySelectorScreenDelegate } from '../../delegates/category/CategorySelectorScreenDelegate' ; import { ScreenFactory } from '../ScreenFactory' ; export class CategorySelectorScreenFactory extends ScreenFactory { public createScreenDelegate ( observableScreen , onSelect ) { const navigatorDelegate = this . createNavigatorDelegate ( ) ; const categoryFormDelegate = new CategoryFormDelegate ( this . eventBus , this . observer , this . props . rootStore . setStore , observableScreen . categoryFormState ) ; return new CategorySelectorScreenDelegate ( this . observer , observableScreen , categoryFormDelegate , navigatorDelegate , onSelect ) ; } }