import * as React from 'react';
import { LeafBlockFrame } from './LeafBlockFrame';
export const RenderBlock = (props) => {
    const { block, children } = props;
    let element = children;
    if (block.isLeaf()) {
        element = React.createElement(LeafBlockFrame, { ...props }, children);
    }
    return element;
};
//# sourceMappingURL=RenderBlock.js.map