"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 __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 __rest = (this && this.__rest) || function (s, e) {
    var t = {};
    for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
        t[p] = s[p];
    if (s != null && typeof Object.getOwnPropertySymbols === "function")
        for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
            if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
                t[p[i]] = s[p[i]];
        }
    return t;
};
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 useHoverProps_1 = __importDefault(require("../../../hooks/styles/useHoverProps"));
var Icon_1 = __importDefault(require("../../../components/Icon"));
var styles_1 = __importDefault(require("../../../utils/styles"));
var styles_2 = require("../../../utils/styles");
var Container = styles_1.default.button(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n  width: ", ";\n  height: ", ";\n  box-sizing: border-box;\n  padding: 4px;\n  border-radius: 8px;\n  background: ", ";\n  transition: background ", " ease-in-out;\n  cursor: pointer;\n  position: relative;\n"], ["\n  width: ", ";\n  height: ", ";\n  box-sizing: border-box;\n  padding: 4px;\n  border-radius: 8px;\n  background: ", ";\n  transition: background ", " ease-in-out;\n  cursor: pointer;\n  position: relative;\n"])), function (_a) {
    var $size = _a.$size;
    return $size === 'large' ? '36px' : $size === 'medium' ? '28px' : '24px';
}, function (_a) {
    var $size = _a.$size;
    return $size === 'large' ? '36px' : $size === 'medium' ? '28px' : '24px';
}, function (_a) {
    var $isHover = _a.$isHover;
    return ($isHover ? styles_2.theme.color.gray[200] : 'none');
}, styles_2.theme.duration);
exports.default = (function (_a) {
    var _b = _a.size, size = _b === void 0 ? 'medium' : _b, icon = _a.icon, fill = _a.fill, props = __rest(_a, ["size", "icon", "fill"]);
    var _c = (0, useHoverProps_1.default)(), hoverProps = _c[0], isHover = _c[1];
    return ((0, jsx_runtime_1.jsx)(Container, __assign({ "$size": size, "$isHover": isHover }, hoverProps, props, { children: (0, jsx_runtime_1.jsx)(Icon_1.default, { type: icon, fill: fill, size: "100%" }) })));
});
var templateObject_1;
//# sourceMappingURL=index.js.map