@if (bookCoverUrl) { Book cover }
{{ bookTitle }}
@if (bookAuthors) {
{{ bookAuthors }}
}
@switch (activeTab) { @case ('chapters') {
    @for (chapter of chapters; track chapter.href) { }
  • {{ chapter.label }} @if (chapter.subitems?.length) { }
    @if (chapter.subitems?.length && isChapterExpanded(chapter.href)) {
      @for (sub of chapter.subitems; track sub.href) { }
    }
  • } @case ('bookmarks') { @if (bookmarks.length > 0) {
      @for (bookmark of bookmarks; track bookmark.id) {
    • {{ bookmark.title }}
      {{ bookmark.createdAt | date: 'short' }}
    • }
    } @else {
    No bookmarks yet.
    } } }