import { ObservableWritingSettingsScreen } from '@ulangi/ulangi-observable' ; import { ReviewFeedbackButtonDelegate } from '../../delegates/review-feedback/ReviewFeedbackButtonDelegate' ; import { WritingSettingsDelegate } from '../../delegates/writing/WritingSettingsDelegate' ; import { WritingSettingsScreenDelegate } from '../../delegates/writing/WritingSettingsScreenDelegate' ; import { LessonScreenStyle } from '../../styles/LessonScreenStyle' ; import { ScreenFactory } from '../ScreenFactory' ; export class WritingSettingsScreenFactory extends ScreenFactory { public createWritingSettingsDelegate ( ) { return new WritingSettingsDelegate ( this . eventBus , this . props . rootStore . setStore ) ; } public createScreenDelegate ( observableScreen ) { const navigatorDelegate = this . createNavigatorDelegate ( ) ; const dialogDelegate = this . createDialogDelegate ( LessonScreenStyle . LIGHT_BOX_SCREEN_STYLES ) ; const writingSettingsDelegate = this . createWritingSettingsDelegate ( ) ; const reviewFeedbackButtonDelegate = new ReviewFeedbackButtonDelegate ( ) ; return new WritingSettingsScreenDelegate ( observableScreen , writingSettingsDelegate , reviewFeedbackButtonDelegate , dialogDelegate , navigatorDelegate ) ; } }