import { jsx, jsxs } from "react/jsx-runtime";
import "react";
import { Tag } 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__*/ jsx("div", {
        children: /*#__PURE__*/ jsxs(Tag, {
            color: colors[type],
            children: [
                /*#__PURE__*/ jsx("span", {
                    children: tag
                }),
                " (",
                text[type],
                ")"
            ]
        })
    });
};
export { TreeNode };
