chore(react/type_widget): port content widget

This commit is contained in:
Elian Doran
2025-09-19 21:18:09 +03:00
parent db7cda3fe6
commit daa5ee93e9
31 changed files with 88 additions and 146 deletions

View File

@@ -10,6 +10,7 @@ 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";
import ContentWidget from "./type_widgets/ContentWidget";
/**
* 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,
@@ -62,6 +63,7 @@ function getCorrespondingWidget(noteType: ExtendedNoteType | undefined, props: T
case "search": return <div className="note-detail-none note-detail-printable" />
case "protectedSession": return <ProtectedSession />
case "book": return <Book {...props} />
case "contentWidget": return <ContentWidget {...props} />
default: break;
}
}