src/app/components/Embeds/EmbedHtml/index.tsx
/** @jsx jsx */
import { jsx } from '@emotion/react';
import { PropsWithChildren } from 'react';
import styles from './index.styles';
type Props = {
embeddableContent: string;
};
const EmbedHtml = ({ embeddableContent }: PropsWithChildren<Props>) => {
if (!embeddableContent) return null;
return (
<div
css={styles.embedDiv}
suppressHydrationWarning
// eslint-disable-next-line react/no-danger
dangerouslySetInnerHTML={{ __html: embeddableContent }}
data-testid="embed"
/>
);
};
export default EmbedHtml;