import { h } from '@stencil/core';
import { RTEBlockRenderer } from './block-renderer.abstract';
import RTEListItemBlockRenderer from './list-item-block-renderer';
class RTEListBlockRenderer extends RTEBlockRenderer {
  render(block, renderContext) {
    const BlockTag = block.getBlockTag();
    return (h(BlockTag, Object.assign({}, this.getCustomAttrs(block), { key: block.id, ref: (ref) => super.registerRef(ref, block), style: block.getStyles(), class: block.getClasses() }), block.children.map((listItemBlock) => RTEListItemBlockRenderer.render(listItemBlock, renderContext))));
  }
}
export default new RTEListBlockRenderer();
