import * as __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__ from "react/jsx-runtime";
import "react";
import * as __WEBPACK_EXTERNAL_MODULE_antd__ from "antd";
const TreeNode = (props)=>{
    const { tag, type } = props;
    const text = {
        reference: 'Reference',
        duplicate: 'Duplicate',
        preloading: 'Preloading'
    };
    const colors = {
        reference: 'blue',
        duplicate: 'green',
        preloading: 'cyan'
    };
    return /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__.jsx)("div", {
        children: /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__.jsxs)(__WEBPACK_EXTERNAL_MODULE_antd__.Tag, {
            color: colors[type],
            children: [
                /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__.jsx)("span", {
                    children: tag
                }),
                " (",
                text[type],
                ")"
            ]
        })
    });
};
export { TreeNode };
