"use strict";
var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
    if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
    return cooked;
};
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
    if (k2 === undefined) k2 = k;
    var desc = Object.getOwnPropertyDescriptor(m, k);
    if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
      desc = { enumerable: true, get: function() { return m[k]; } };
    }
    Object.defineProperty(o, k2, desc);
}) : (function(o, m, k, k2) {
    if (k2 === undefined) k2 = k;
    o[k2] = m[k];
}));
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
    Object.defineProperty(o, "default", { enumerable: true, value: v });
}) : function(o, v) {
    o["default"] = v;
});
var __importStar = (this && this.__importStar) || function (mod) {
    if (mod && mod.__esModule) return mod;
    var result = {};
    if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
    __setModuleDefault(result, mod);
    return result;
};
var __importDefault = (this && this.__importDefault) || function (mod) {
    return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
var jsx_runtime_1 = require("react/jsx-runtime");
var react_1 = __importDefault(require("react"));
var Text_1 = __importDefault(require("../../../components/Text"));
var styles_1 = __importStar(require("../../../utils/styles"));
var Container = styles_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n  background: ", ";\n  padding: 0px 8px;\n  border-radius: 6px;\n  height: 24px;\n  display: flex;\n  align-items: center;\n  cursor: ", ";\n"], ["\n  background: ", ";\n  padding: 0px 8px;\n  border-radius: 6px;\n  height: 24px;\n  display: flex;\n  align-items: center;\n  cursor: ", ";\n"])), function (_a) {
    var $background = _a.$background;
    return $background;
}, function (_a) {
    var $isClickabled = _a.$isClickabled;
    return ($isClickabled ? 'pointer' : 'default');
});
exports.default = react_1.default.forwardRef(function (_a, ref) {
    var type = _a.type, _b = _a.isClickabled, isClickabled = _b === void 0 ? true : _b;
    var _c = styles_1.theme.tag[type], background = _c.background, color = _c.color, text = _c.text;
    return ((0, jsx_runtime_1.jsx)(Container, { ref: ref, "$background": background, "$isClickabled": isClickabled, children: (0, jsx_runtime_1.jsx)(Text_1.default, { "$color": color, type: "b6", value: text, "$ellipsis": true }) }));
});
var templateObject_1;
//# sourceMappingURL=index.js.map