import * as React from "react" ; import AuthenticationServiceFactory from "../service/AuthenticationServiceFactory" ; import RequireAuthenticated from "./RequireAuthenticated" ; class RequireAuthenticatedFactory { public constructor ( readonly authenticationServiceFactory ) { } public create = ( children ) : JSX . Element => { return < RequireAuthenticated authenticationService = { this . authenticationServiceFactory . create ( ) } > { children } < /RequireAuthenticated>; } ; } export default RequireAuthenticatedFactory ;