decord/source/1614_ServerContainer.js
2026-08-11 06:20:06 +00:00

35 lines
1 KiB
JavaScript

// Module ID: 1614
// Function ID: 1615
// Name: ServerContainer
// Dependencies: [19, 21, 1615, 1502]
// Module 1614 (ServerContainer)
import importAllResult from "noop";
import { jsx } from "jsxProd";
const require = arg1;
export const ServerContainer = importAllResult.forwardRef(function ServerContainer(arg0, fn) {
let _location;
let children;
let obj;
({ children, location: _location } = arg0);
const effect = importAllResult.useEffect(() => {
console.error("'ServerContainer' should only be used on the server with 'react-dom/server' for SSR.");
}, []);
obj = {};
if (fn) {
obj = { getCurrentOptions: null };
obj[0] = function getCurrentOptions() {
return obj.options;
};
if (typeof fn === "function") {
fn(obj);
} else {
fn.current = obj;
}
}
obj = { value: { location: _location }, children: null };
obj[1] = jsx(obj(1502).CurrentRenderContext.Provider, { value: obj, children });
return jsx(obj(1615).ServerContext.Provider, { value: { location: _location }, children: null });
});