import { PlateElement } from '@udecode/plate-common' import { forwardRef } from 'react' import { rawHtml } from './element.css' import type { RawHtmlElementState } from './plugin' export const RawHtmlElement = forwardRef( ( props: React.ComponentPropsWithoutRef, ref: React.ElementRef, ) => { const { html } = props.element as unknown as RawHtmlElementState return ( {/* eslint-disable-next-line react-dom/no-dangerously-set-innerhtml */}
{props.children} ) }, )