import { OutputData } from '@editorjs/editorjs'; import createParser from 'editorjs-html'; import { FC, HTMLAttributes } from 'react'; export const parser = createParser({ link: ({ data: { link } }: Record) => `${link}` }); export interface EditorHTMLProps extends HTMLAttributes { data: OutputData; } export const EditorHTML: FC = ({ data, ...props }) => (
); EditorHTML.displayName = 'EditorHTML';