mirror of
https://github.com/eigent-ai/eigent.git
synced 2026-04-29 04:00:09 +00:00
23 lines
506 B
JavaScript
23 lines
506 B
JavaScript
"use client";
|
|
"use client";
|
|
|
|
// src/components/elements/ssr-layout-effect.tsx
|
|
import { useLayoutEffect } from "react";
|
|
import { jsx } from "react/jsx-runtime";
|
|
function SsrScript(props) {
|
|
useLayoutEffect(() => {
|
|
(0, eval)(props.script);
|
|
}, []);
|
|
return /* @__PURE__ */ jsx(
|
|
"script",
|
|
{
|
|
suppressHydrationWarning: true,
|
|
nonce: props.nonce,
|
|
dangerouslySetInnerHTML: { __html: props.script }
|
|
}
|
|
);
|
|
}
|
|
export {
|
|
SsrScript
|
|
};
|
|
//# sourceMappingURL=ssr-layout-effect.js.map
|