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