import { ReactEditor } from '@src/components/slate-packages/slate-react'; import React from 'react'; import { insertCard } from '../Card'; import { ELTYPE } from '../config'; import './index.less'; export const insertIFrame = (editor: ReactEditor, type, link) => { insertCard(editor, { type, linkSource: link, children: [ { text: '', }, ], }); }; export default function ComIfram({ attributes, element, children }) { return (