opds-web-client
Version:
24 lines (23 loc) • 971 B
JavaScript
var __extends = (this && this.__extends) || function (d, b) {
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
var React = require("react");
var SkipNavigationLink = (function (_super) {
__extends(SkipNavigationLink, _super);
function SkipNavigationLink() {
return _super.apply(this, arguments) || this;
}
SkipNavigationLink.prototype.render = function () {
var tabIndex = -1;
var label = "Skip " + (this.props.label || "navigation");
return (React.createElement("div", { className: "skip-navigation", tabIndex: tabIndex },
React.createElement("a", { href: this.props.target }, label)));
};
return SkipNavigationLink;
}(React.Component));
Object.defineProperty(exports, "__esModule", { value: true });
exports.default = SkipNavigationLink;
;
;