import * as React from "react" ; import NotificationServiceFactory from "../service/NotificationServiceFactory" ; import ToastHandler from "./ToastHandler" ; class ToastHandlerFactory { public constructor ( readonly notificationServiceFactory ) { } public create ( ) { return < ToastHandler notificationService = { this . notificationServiceFactory . create ( ) } />; } } export default ToastHandlerFactory ;