"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 json_crdt_extensions_1 = require("../../../json-crdt-extensions");
const RenderBlock = ({ block, children }) => {
    const tag = block.tag();
    switch (tag) {
        case '':
            return children;
        case json_crdt_extensions_1.CommonSliceType.blockquote: {
            return React.createElement("blockquote", null, children);
        }
        default: {
            return React.createElement("div", { style: { padding: '16px 0' } }, children);
        }
    }
};
exports.RenderBlock = RenderBlock;
//# sourceMappingURL=RenderBlock.js.map