2022-10-23 01:51:05 +02:00
|
|
|
/* eslint-disable react/no-danger */
|
2022-10-09 00:33:23 +02:00
|
|
|
import { FC } from 'react';
|
|
|
|
|
2022-10-23 01:51:05 +02:00
|
|
|
export const ServerRenderedHydration: FC = () => (
|
|
|
|
<script
|
|
|
|
id="server-side-hydration"
|
2022-12-13 01:57:17 +01:00
|
|
|
nonce="{{.Nonce}}"
|
2022-10-23 01:51:05 +02:00
|
|
|
dangerouslySetInnerHTML={{
|
|
|
|
__html: `
|
|
|
|
window.configHydration = {{.ServerConfigJSON}};
|
|
|
|
window.statusHydration = {{.StatusJSON}};
|
|
|
|
`,
|
|
|
|
}}
|
|
|
|
/>
|
2022-10-09 00:33:23 +02:00
|
|
|
);
|