import { VegaRTEExtensionRenderer } from '../../base-extension-renderer';
/**
 * Renders a logic control block in the rich text editor.
 */
export class RTELogicControlBlockRenderer extends VegaRTEExtensionRenderer {
  /**
   * @inheritDoc
   */
  doRender(h, renderData) {
    return h('div', {
      key: renderData.id,
      class: 'statementsyntax',
      ref: this.useRef(renderData),
    }, h('span', {
      key: `${renderData.id}-1`,
      contenteditable: 'false',
      ref: this.useRef(renderData.children[0]),
    }, renderData.statementText));
  }
}
