1
0
Fork 0
mirror of https://github.com/owncast/owncast.git synced 2025-01-01 22:27:39 +03:00
owncast/web/components/ServerRendered/ServerRenderedHydration.tsx
2022-12-12 17:04:00 -08:00

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}};
`,
}}
/>
);