/**
 * amis-ui v6.12.0-beta.0
 * Copyright 2018-2025 fex
 */

'use strict';

Object.defineProperty(exports, '__esModule', { value: true });

var tslib = require('tslib');
var React = require('react');
var Common = require('./Common.js');

function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }

var React__default = /*#__PURE__*/_interopDefaultLegacy(React);

var __react_jsx__ = require('react');
var _J$X_ = (__react_jsx__["default"] || __react_jsx__).createElement;
(__react_jsx__["default"] || __react_jsx__).Fragment;
var SchemaEditorItem = /** @class */ (function (_super) {
    tslib.__extends(SchemaEditorItem, _super);
    function SchemaEditorItem() {
        return _super !== null && _super.apply(this, arguments) || this;
    }
    SchemaEditorItem.prototype.render = function () {
        var value = this.props.value;
        // 动态Component要用大写开头的才会被识别
        var Renderer = ((value === null || value === void 0 ? void 0 : value.type) && Common.ITEMMAP[value === null || value === void 0 ? void 0 : value.type]) || Common.SchemaEditorItemCommon;
        return (_J$X_(Renderer, tslib.__assign({}, this.props, { key: (value === null || value === void 0 ? void 0 : value.type) || 'string' })));
    };
    return SchemaEditorItem;
}(React__default["default"].Component));

exports.SchemaEditorItem = SchemaEditorItem;
