formacao
This commit is contained in:
+1
-1
@@ -1,4 +1,3 @@
|
||||
"use strict";
|
||||
var __defProp = Object.defineProperty;
|
||||
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
||||
var __getOwnPropNames = Object.getOwnPropertyNames;
|
||||
@@ -28,6 +27,7 @@ var import_jsx = require("../../jsx");
|
||||
var import_streaming = require("../../jsx/streaming");
|
||||
const RequestContext = (0, import_jsx.createContext)(null);
|
||||
const createRenderer = (c, Layout, component, options) => (children, props) => {
|
||||
options = typeof options === "function" ? options(c) : options;
|
||||
const docType = typeof options?.docType === "string" ? options.docType : options?.docType === false ? "" : "<!DOCTYPE html>";
|
||||
const currentLayout = component ? (0, import_jsx.jsx)(
|
||||
(props2) => component(props2, c),
|
||||
|
||||
Reference in New Issue
Block a user