UNPKG

opds-web-client

Version:
21 lines (20 loc) 859 B
"use strict"; 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 BasicAuthButton = (function (_super) { __extends(BasicAuthButton, _super); function BasicAuthButton() { return _super.apply(this, arguments) || this; } BasicAuthButton.prototype.render = function () { var label = "Log in with " + this.props.provider.name; return (React.createElement("input", { type: "submit", className: "btn btn-default", value: label })); }; return BasicAuthButton; }(React.Component)); Object.defineProperty(exports, "__esModule", { value: true }); exports.default = BasicAuthButton;