"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.NodeValue = void 0;
const jsx_runtime_1 = require("react/jsx-runtime");
const styles_1 = require("./styles");
const useLogic_1 = require("./useLogic");
const NodeValue = (props) => {
    const { isExpandable, color, expandableText, isCanCopy, formattedValue, isGuid, } = (0, useLogic_1.useLogic)(props);
    if (isExpandable) {
        return ((0, jsx_runtime_1.jsx)(styles_1.Value, { component: "dd", typeColor: color, colorIntensity: "500", variant: "caption", children: expandableText }));
    }
    if (isGuid) {
        return ((0, jsx_runtime_1.jsx)(styles_1.CopyWrapper, { isShowCopyText: true, titleColor: color, copyText: formattedValue, children: (0, jsx_runtime_1.jsx)(styles_1.GuidValue, { component: "dd", tooltipProps: {
                    title: undefined,
                }, titleColor: color, children: formattedValue }) }));
    }
    if (isCanCopy) {
        return ((0, jsx_runtime_1.jsx)(styles_1.CopyWrapper, { isShowCopyText: true, titleColor: color, copyText: formattedValue, children: (0, jsx_runtime_1.jsx)(styles_1.Value, { component: "dd", tooltipProps: {
                    title: undefined,
                }, typeColor: color, children: formattedValue }) }));
    }
    return ((0, jsx_runtime_1.jsx)(styles_1.Value, { component: "dd", typeColor: color, children: formattedValue }));
};
exports.NodeValue = NodeValue;
