"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.RenderBlock = void 0;
const tslib_1 = require("tslib");
const React = tslib_1.__importStar(require("react"));
const LeafBlockFrame_1 = require("./LeafBlockFrame");
const RenderBlock = (props) => {
    const { block, children } = props;
    let element = children;
    if (block.isLeaf()) {
        element = React.createElement(LeafBlockFrame_1.LeafBlockFrame, { ...props }, children);
    }
    return element;
};
exports.RenderBlock = RenderBlock;
//# sourceMappingURL=RenderBlock.js.map