var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
    if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
    return cooked;
};
var __assign = (this && this.__assign) || function () {
    __assign = Object.assign || function(t) {
        for (var s, i = 1, n = arguments.length; i < n; i++) {
            s = arguments[i];
            for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
                t[p] = s[p];
        }
        return t;
    };
    return __assign.apply(this, arguments);
};
var _a;
import { jsx as _jsx } from "react/jsx-runtime";
import styled, { css } from 'styled-components';
export var variants = {
    PRIMARY: 'primary',
    SECONDARY: 'secondary',
};
var styleVariants = (_a = {},
    _a[variants.PRIMARY] = css(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n    background-color: ", ";\n    color: ", ";\n    border: 1px solid ", ";\n  "], ["\n    background-color: ", ";\n    color: ", ";\n    border: 1px solid ", ";\n  "])), function (_a) {
        var theme = _a.theme;
        return theme.chain.color;
    }, function (_a) {
        var theme = _a.theme;
        return theme.colors.contrast;
    }, function (_a) {
        var theme = _a.theme;
        return theme.chain.color;
    }),
    _a[variants.SECONDARY] = css(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n    background-color: 'transparent';\n    color: ", ";\n    border: 1px solid ", ";\n  "], ["\n    background-color: 'transparent';\n    color: ", ";\n    border: 1px solid ", ";\n  "])), function (_a) {
        var theme = _a.theme;
        return theme.chain.color;
    }, function (_a) {
        var theme = _a.theme;
        return theme.chain.color;
    }),
    _a);
var StyledContainer = styled.div(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n  align-items: center;\n  display: flex;\n  justify-content: center;\n  align-items: center;\n  padding: 5px 20px;\n  border-radius: ", ";\n  ", "\n"], ["\n  align-items: center;\n  display: flex;\n  justify-content: center;\n  align-items: center;\n  padding: 5px 20px;\n  border-radius: ", ";\n  ", "\n"])), function (_a) {
    var theme = _a.theme;
    return theme.chain.borderRadius;
}, function (_a) {
    var variant = _a.variant;
    return styleVariants[variant || 'primary'];
});
var Tag = function (_a) {
    var className = _a.className, text = _a.text, variant = _a.variant;
    return (_jsx(StyledContainer, __assign({ className: className, variant: variant }, { children: text })));
};
export default Tag;
var templateObject_1, templateObject_2, templateObject_3;
