import classnames from 'classnames' ; import ( './EmbedNode.css' ) ; function EmbedNode ( { attributes , editor , children , node , isFocused } ) { return ( < span { ... attributes } className = { classnames ( 'slate-embed-plugin--node' , { active : isFocused } ) } dangerouslySetInnerHTML = { { __html : node . data . get ( 'embed' ) } } />); } export default EmbedNode ;