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