UNPKG

opds-web-client

Version:
35 lines (34 loc) 1.58 kB
"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 Book_1 = require("./Book"); var CatalogLink_1 = require("./CatalogLink"); var BookCover_1 = require("./BookCover"); var LaneBook = (function (_super) { __extends(LaneBook, _super); function LaneBook() { _super.apply(this, arguments); } LaneBook.prototype.render = function () { var bookStyle = { whiteSpace: "normal", marginRight: "10px", overflow: "hidden", height: "250px" }; var bookInfoStyle = { clear: "left", width: "150px", textAlign: "center", marginTop: "5px" }; return (React.createElement("div", {className: "book laneBook", style: bookStyle}, React.createElement(CatalogLink_1.default, {className: "laneBookLink", collectionUrl: this.props.collectionUrl, bookUrl: this.props.book.url, style: { color: "black", textDecoration: "none" }}, React.createElement(BookCover_1.default, {book: this.props.book}), React.createElement("div", {className: "bookInfo", style: bookInfoStyle}, React.createElement("div", {className: "bookTitle"}, this.props.book.title))))); }; return LaneBook; }(Book_1.default)); Object.defineProperty(exports, "__esModule", { value: true }); exports.default = LaneBook;