import * as React from "react" ; import PageTitleService from "../service/PageTitleService" ; import RoutingService from "../service/RoutingService" ; import Router from "./Router" ; class RouterFactory { constructor ( private readonly routingService , private readonly titleService ) { } public create ( path , title , children ) { return < Router routingService = { this . routingService } path = { path } title = { title } titleService = { this . titleService } > { children } < /Router>; } } export default RouterFactory ;