chore(react/type_widget): port book

This commit is contained in:
Elian Doran
2025-09-19 19:03:31 +03:00
parent d1a9890932
commit fa55c5720e
4 changed files with 29 additions and 62 deletions

View File

@@ -9,6 +9,7 @@ import { VNode } from "preact";
import Doc from "./type_widgets/Doc";
import { TypeWidgetProps } from "./type_widgets/type_widget";
import ProtectedSession from "./type_widgets/ProtectedSession";
import Book from "./type_widgets/Book";
/**
* A `NoteType` altered by the note detail widget, taking into consideration whether the note is editable or not and adding special note types such as an empty one,
@@ -60,6 +61,7 @@ function getCorrespondingWidget(noteType: ExtendedNoteType | undefined, props: T
case "doc": return <Doc {...props} />
case "search": return <div className="note-detail-none note-detail-printable" />
case "protectedSession": return <ProtectedSession />
case "book": return <Book {...props} />
default: break;
}
}