"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
    return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
var const_1 = require("../const");
var colored_tag_1 = __importDefault(require("../colored-tag"));
var colored_tag_group_1 = __importDefault(require("../colored-tag-group"));
/**
 * 兼容旧版 wind 的 API
 */
// eslint-disable-next-line @typescript-eslint/naming-convention
function hocColorfulTag(Tag) {
    Tag.Colored = colored_tag_1.default;
    Tag.ColoredGroup = colored_tag_group_1.default;
    // Add protected property as component identity
    Tag[const_1.PROTECTED_TYPE] = 'Tag';
    return Tag;
}
exports.default = hocColorfulTag;
