"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.TagBadge = void 0;
const jsx_runtime_1 = require("react/jsx-runtime");
const react_1 = require("react");
const Tag_1 = require("../Tag");
const TagContext_1 = require("../Tag/TagContext");
const classNames_1 = require("../utils/classNames");
const styles_1 = require("./styles");
/**
 * Badge для использования внутри компонента Tag
 */
const TagBadge = ({ color = 'primary', checked, disabled, checkedColor, className, ...props }) => {
    const { variant } = (0, react_1.useContext)(TagContext_1.TagContext);
    return ((0, jsx_runtime_1.jsx)(styles_1.StyledBadge, { withBorder: false, color: "white", "$color": color, "$variant": variant, "$isChecked": checked, "$isDisabled": disabled, className: (0, classNames_1.classNames)(className, Tag_1.tagClassnames.badge), ...props }));
};
exports.TagBadge = TagBadge;
