mirror of
https://github.com/eigent-ai/eigent.git
synced 2026-04-29 04:00:09 +00:00
Initial commit of eigent-main
This commit is contained in:
commit
723df5a03e
1144 changed files with 103478 additions and 0 deletions
23
package/@stackframe/react/dist/esm/components/elements/ssr-layout-effect.js
vendored
Normal file
23
package/@stackframe/react/dist/esm/components/elements/ssr-layout-effect.js
vendored
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
"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
|
||||
Loading…
Add table
Add a link
Reference in a new issue