var __extends = (this && this.__extends) || (function () {
    var extendStatics = function (d, b) {
        extendStatics = Object.setPrototypeOf ||
            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
            function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
        return extendStatics(d, b);
    };
    return function (d, b) {
        extendStatics(d, b);
        function __() { this.constructor = d; }
        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
    };
})();
import React from 'react';
import LockSvg from '../Icons/LockSvg';
import UnlockSvg from '../Icons/UnlockSvg';
var LockControl = /** @class */ (function (_super) {
    __extends(LockControl, _super);
    function LockControl() {
        return _super !== null && _super.apply(this, arguments) || this;
    }
    LockControl.prototype.render = function () {
        var _a = this.props, isVisible = _a.isVisible, isLocked = _a.isLocked, alignment = _a.alignment, placement = _a.placement, onToggleLocked = _a.onToggleLocked;
        var iconClassName = isLocked
            ? 'sidebar__control--unlock'
            : 'sidebar__control--lock';
        return (React.createElement("button", { className: "sidebar__control", onClick: onToggleLocked },
            !isLocked && React.createElement(UnlockSvg, { className: iconClassName }),
            isLocked && React.createElement(LockSvg, { className: iconClassName })));
    };
    return LockControl;
}(React.PureComponent));
export default LockControl;
//# sourceMappingURL=LockControl.js.map