owncast/web/components/common/HtmlComment/HtmlComment.tsx
2023-01-11 23:50:26 -08:00

4 lines
183 B
TypeScript

/* eslint-disable react/no-danger */
export const HtmlComment = ({ text }) => (
<span style={{ display: 'none' }} dangerouslySetInnerHTML={{ __html: `\n\n<!-- ${text} -->` }} />
);