mirror of
https://github.com/owncast/owncast.git
synced 2024-11-25 14:20:54 +03:00
15 lines
339 B
TypeScript
15 lines
339 B
TypeScript
/* eslint-disable react/no-danger */
|
|
import { FC } from 'react';
|
|
|
|
export const ServerRenderedHydration: FC = () => (
|
|
<script
|
|
id="server-side-hydration"
|
|
nonce="{{.Nonce}}"
|
|
dangerouslySetInnerHTML={{
|
|
__html: `
|
|
window.configHydration = {{.ServerConfigJSON}};
|
|
window.statusHydration = {{.StatusJSON}};
|
|
`,
|
|
}}
|
|
/>
|
|
);
|