json-joy
Version:
Collection of libraries for building collaborative editing apps.
11 lines • 363 B
JavaScript
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