"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
    return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.IgnoreButton = void 0;
var react_1 = __importDefault(require("react"));
var ui_i18n_1 = __importDefault(require("ui-i18n"));
var SmallIconButton_1 = require("../SmallIconButton");
var Ignored_1 = __importDefault(require("../icons/Ignored"));
var IgnoredOutlined_1 = __importDefault(require("../icons/IgnoredOutlined"));
var IgnoreButton = function (_a) {
    var isIgnored = _a.isIgnored, onClick = _a.onClick, disabled = _a.disabled;
    return (react_1.default.createElement(SmallIconButton_1.SmallIconButtonWithTooltip, { disabled: disabled, showForDisabled: true, icon: isIgnored ? Ignored_1.default : IgnoredOutlined_1.default, tooltipTitle: disabled ? ui_i18n_1.default.text("You don't have permissions to ignore") : ui_i18n_1.default.text('Ignore'), onClick: onClick, size: "XS", disableRipple: true }));
};
exports.IgnoreButton = IgnoreButton;
