owncast/web/components/ServerRendered/ServerRenderedHydration.tsx

16 lines
339 B
TypeScript
Raw Normal View History

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