"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
    return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.MetaDataListBlock = void 0;
const react_1 = __importDefault(require("react"));
const MetaDataListBlock = ({ heading, item, className, renderEditor, }) => {
    const fieldContent = renderEditor ? renderEditor() : item;
    return (react_1.default.createElement("div", { className: 'dataset-meta-block ' + className },
        react_1.default.createElement("h2", { className: "dmb-heading" }, heading),
        fieldContent));
};
exports.MetaDataListBlock = MetaDataListBlock;
