{"size": 1046, "ext": "js", "max_stars_repo_path": "dist/actionbar/ActionButton.js", "max_stars_repo_name": "gisce/react-ooui", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "dist/actionbar/ActionButton.js", "max_issues_repo_name": "gisce/react-ooui", "max_issues_repo_issues_event_min_datetime": "2021-12-21T15:16:02.000Z", "max_issues_repo_issues_event_max_datetime": "2022-03-31T10:27:06.000Z", "max_forks_repo_path": "dist/actionbar/ActionButton.js", "max_forks_repo_name": "gisce/react-ooui", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": 35, "max_forks_count": null, "avg_line_length": 61.5294117647, "max_line_length": 271, "alphanum_fraction": 0.7017208413}
"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
    return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
var react_1 = __importDefault(require("react"));
var ButtonWithTooltip_1 = __importDefault(require("@/common/ButtonWithTooltip"));
var icons_1 = require("@ant-design/icons");
function ActionButton(props) {
    var onClick = props.onClick, _a = props.disabled, disabled = _a === void 0 ? false : _a, _b = props.loading, loading = _b === void 0 ? false : _b, tooltip = props.tooltip, icon = props.icon, label = props.label, _c = props.type, type = _c === void 0 ? "default" : _c;
    var finalIcon = loading ? react_1.default.createElement(icons_1.LoadingOutlined, null) : icon;
    return (react_1.default.createElement(ButtonWithTooltip_1.default, { type: type, tooltip: tooltip, onClick: onClick, disabled: disabled },
        finalIcon,
        label));
}
exports.default = ActionButton;
//# sourceMappingURL=ActionButton.js.map