owncast/web/components/ui/CustomPageContent/CustomPageContent.tsx
2022-12-05 21:04:59 -08:00

13 lines
417 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 className={styles.pageContentContainer}>
<div className={styles.customPageContent} dangerouslySetInnerHTML={{ __html: content }} />
</div>
);