import { DeepPartial } from '@ulangi/extended-types' ; import { Definition } from '@ulangi/ulangi-common/interfaces' ; import { ObservableDictionaryPickerScreen } from '@ulangi/ulangi-observable' ; import { DictionaryEntryDelegate } from '../../delegates/dictionary/DictionaryEntryDelegate' ; import { TranslationListDelegate } from '../../delegates/translation/TranslationListDelegate' ; import { DictionaryPickerScreenDelegate } from '../../delegates/vocabulary/DictionaryPickerScreenDelegate' ; import { ScreenFactory } from '../ScreenFactory' ; export class DictionaryPickerScreenFactory extends ScreenFactory { public createScreenDelegate ( observableScreen , onPick ) { const navigatorDelegate = this . createNavigatorDelegate ( ) ; const dictionaryEntryDelegate = new DictionaryEntryDelegate ( this . eventBus , this . props . rootStore . setStore , this . props . observableConverter , observableScreen . dictionaryEntryState ) ; const translationListDelegate = new TranslationListDelegate ( this . eventBus , this . props . observableConverter , this . props . rootStore . setStore , observableScreen . translationListState ) ; return new DictionaryPickerScreenDelegate ( observableScreen , dictionaryEntryDelegate , translationListDelegate , navigatorDelegate , onPick ) ; } }