owncast/web/components/ServerRendered/ServerRenderedHydration.tsx

15 lines
316 B
TypeScript
Raw Normal View History

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