"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.ToolIndicator = void 0;
const jsx_runtime_1 = require("react/jsx-runtime");
const icons_1 = require("@gravity-ui/icons");
const uikit_1 = require("@gravity-ui/uikit");
const cn_1 = require("../../../utils/cn.js");
const Loader_1 = require("../Loader/index.js");
require("./ToolIndicator.css");
const b = (0, cn_1.block)('tool-indicator');
const ToolIndicator = (props) => {
    const { status = 'info', className, qa } = props;
    const commonProps = {
        qa,
        size: 16,
    };
    switch (status) {
        case 'success':
            return (0, jsx_runtime_1.jsx)(uikit_1.Icon, Object.assign({}, commonProps, { data: icons_1.CircleCheck, className: b('success', className) }));
        case 'error':
            return (0, jsx_runtime_1.jsx)(uikit_1.Icon, Object.assign({}, commonProps, { data: icons_1.CircleXmark, className: b('error', className) }));
        case 'info':
            return (0, jsx_runtime_1.jsx)(uikit_1.Icon, Object.assign({}, commonProps, { data: icons_1.CircleInfo, className: b('info', className) }));
        case 'loading':
            return (0, jsx_runtime_1.jsx)(Loader_1.Loader, { view: "loading", size: "xs", className: className, qa: qa });
        default:
            return null;
    }
};
exports.ToolIndicator = ToolIndicator;
//# sourceMappingURL=index.js.map
