import { ObservableQuizScreen } from '@ulangi/ulangi-observable' ; import { QuizScreenDelegate } from '../../delegates/quiz/QuizScreenDelegate' ; import { QuizSettingsDelegate } from '../../delegates/quiz/QuizSettingsDelegate' ; import { SetSelectionMenuDelegate } from '../../delegates/set/SetSelectionMenuDelegate' ; import { LessonScreenStyle } from '../../styles/LessonScreenStyle' ; import { ScreenFactory } from '../ScreenFactory' ; export class QuizScreenFactory extends ScreenFactory { public createSetSelectionMenuDelegateWithStyles ( ) { return this . createSetSelectionMenuDelegate ( LessonScreenStyle . LIGHT_BOX_SCREEN_STYLES ) ; } public createScreenDelegate ( observableScreen ) { const navigatorDelegate = this . createNavigatorDelegate ( ) ; const dialogDelegate = this . createDialogDelegate ( LessonScreenStyle . LIGHT_BOX_SCREEN_STYLES ) ; const quizSettingsDelegate = new QuizSettingsDelegate ( this . eventBus , this . props . rootStore . setStore ) ; return new QuizScreenDelegate ( this . eventBus , this . props . rootStore . setStore , this . props . observableConverter , observableScreen , quizSettingsDelegate , dialogDelegate , navigatorDelegate ) ; } }