owncast/web/components/ui/CustomPageContent/CustomPageContent.tsx
2023-02-22 09:40:56 -08:00

14 lines
402 B
TypeScript

/* eslint-disable react/no-danger */
import { FC } from 'react';
import styles from './CustomPageContent.module.scss';
export type CustomPageContentProps = {
content: string;
};
export const CustomPageContent: FC<CustomPageContentProps> = ({ content }) => (
<div id="custom-page-content">
<div className={styles.customPageContent} dangerouslySetInnerHTML={{ __html: content }} />
</div>
);