import { h } from '@stencil/core';
import RTEListBlockRenderer from './list-block-renderer';
import { RTEBlockTextNodesRenderer } from './block-text-nodes-renderer.abstract';
class RTEListItemBlockRenderer extends RTEBlockTextNodesRenderer {
  render(block, renderContext) {
    return (h("li", Object.assign({}, this.getCustomAttrs(block), { key: block.id, ref: (ref) => super.registerRef(ref, block), style: block.getStyles(), class: block.getClasses() }),
      super.renderNodes(block, renderContext),
      this.renderChildren(block.nestList, renderContext)));
  }
  renderChildren(children, renderContext) {
    return children === null || children === void 0 ? void 0 : children.map((block) => RTEListBlockRenderer.render(block, renderContext));
  }
}
export default new RTEListItemBlockRenderer();
