30 lines
884 B
React
30 lines
884 B
React
// Metro module 1569 (f1570).
|
|
import { forwardRef, useEffect } from "react";
|
|
import Module1570 from "./Module1570";
|
|
import { CurrentRenderContext } from "./Module1483";
|
|
export default forwardRef(function ServerContainer(props, a1) {
|
|
let c13120_0;
|
|
const { children, location: location2 } = props;
|
|
c13120_0 = void 0;
|
|
useEffect(() => {
|
|
console.error("'ServerContainer' should only be used on the server with 'react-dom/server' for SSR.");
|
|
}, []);
|
|
const value = {};
|
|
c13120_0 = value;
|
|
if (a1) {
|
|
const current = {
|
|
getCurrentOptions: () => c13120_0.options
|
|
};
|
|
if (typeof a1 === "function") {
|
|
a1(current);
|
|
} else {
|
|
a1.current = current;
|
|
}
|
|
}
|
|
return <Module1570.Provider value={{
|
|
location: location2
|
|
}}>
|
|
<CurrentRenderContext.Provider value={value}>{children}</CurrentRenderContext.Provider>
|
|
</Module1570.Provider>;
|
|
});
|