"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.ChipStatusIcon = void 0;
const jsx_runtime_1 = require("react/jsx-runtime");
const react_1 = require("react");
const classNames_1 = require("../../utils/classNames");
const constants_1 = require("./constants");
const styled_1 = require("./styled");
const ChipStatusIcon = ({ status }) => {
    const classnames = (0, react_1.useMemo)(() => {
        return (0, classNames_1.classNames)(constants_1.chipStatusIconClassnames.root, {
            [constants_1.chipStatusIconClassnames.success]: status === 'success',
            [constants_1.chipStatusIconClassnames.warning]: status === 'warning',
            [constants_1.chipStatusIconClassnames.error]: status === 'error',
        });
    }, [status]);
    return ((0, jsx_runtime_1.jsx)(styled_1.StatusIcon, { className: classnames, viewBox: "0 0 20 20", width: "20px", height: "20px", children: (0, jsx_runtime_1.jsx)("circle", { cx: "10", cy: "10", r: "3.33333" }) }));
};
exports.ChipStatusIcon = ChipStatusIcon;
