import { jsx as _jsx } from "react/jsx-runtime";
import { CircleCheck, CircleInfo, CircleXmark } from '@gravity-ui/icons';
import { Icon } from '@gravity-ui/uikit';
import { block } from "../../../utils/cn.js";
import { Loader } from "../Loader/index.js";
import "./ToolIndicator.css";
const b = block('tool-indicator');
export const ToolIndicator = (props) => {
    const { status = 'info', className, qa } = props;
    const commonProps = {
        qa,
        size: 16,
    };
    switch (status) {
        case 'success':
            return _jsx(Icon, Object.assign({}, commonProps, { data: CircleCheck, className: b('success', className) }));
        case 'error':
            return _jsx(Icon, Object.assign({}, commonProps, { data: CircleXmark, className: b('error', className) }));
        case 'info':
            return _jsx(Icon, Object.assign({}, commonProps, { data: CircleInfo, className: b('info', className) }));
        case 'loading':
            return _jsx(Loader, { view: "loading", size: "xs", className: className, qa: qa });
        default:
            return null;
    }
};
//# sourceMappingURL=index.js.map
