import { RouteModule } from "../route-module";
import { renderToHTMLImpl, renderToHTML } from "../../../render";
import * as sharedModules from "./shared-modules";
export class PagesRouteModule extends RouteModule {
    static #_ = (()=>{
        this.sharedModules = sharedModules;
    })();
    constructor(options){
        super(options);
        this.components = options.components;
    }
    render(req, res, context) {
        return renderToHTMLImpl(req, res, context.page, context.query, context.renderOpts, {
            App: this.components.App,
            Document: this.components.Document
        });
    }
}
// needed for the static build
export { renderToHTML };
export default PagesRouteModule;

//# sourceMappingURL=module.js.map