mirror of
https://github.com/owncast/owncast.git
synced 2024-11-22 21:03:19 +03:00
10 lines
321 B
TypeScript
10 lines
321 B
TypeScript
import { FC } from 'react';
|
|
|
|
export type ServerRenderedHydrationProps = {
|
|
hydrationScript: string;
|
|
};
|
|
|
|
export const ServerRenderedHydration: FC<ServerRenderedHydrationProps> = ({ hydrationScript }) => (
|
|
// eslint-disable-next-line react/no-danger
|
|
<script dangerouslySetInnerHTML={{ __html: hydrationScript }} />
|
|
);
|