import { ObservableReminderScreen } from '@ulangi/ulangi-observable' ; import { ReminderDelegate } from '../../delegates/reminder/ReminderDelegate' ; import { ReminderScreenDelegate } from '../../delegates/reminder/ReminderScreenDelegate' ; import { ReminderSettingsDelegate } from '../../delegates/reminder/ReminderSettingsDelegate' ; import { ScreenFactory } from '../../factories/ScreenFactory' ; import { SecondaryScreenStyle } from '../../styles/SecondaryScreenStyle' ; export class ReminderScreenFactory extends ScreenFactory { public createReminderSettingsDelegate ( ) { return new ReminderSettingsDelegate ( this . props . rootStore . userStore , this . props . rootStore . notificationStore ) ; } public createScreenDelegate ( observableScreen ) { const dialogDelegate = this . createDialogDelegate ( SecondaryScreenStyle . LIGHT_BOX_SCREEN_STYLES ) ; const reminderDelegate = new ReminderDelegate ( this . eventBus ) ; return new ReminderScreenDelegate ( this . eventBus , this . props . rootStore . notificationStore , observableScreen , reminderDelegate , dialogDelegate ) ; } }