feat(client/print): print presentations with waiting for slides to load

This commit is contained in:
Elian Doran
2025-10-19 16:27:13 +03:00
parent 89dac52f49
commit 64576458b7
7 changed files with 58 additions and 10 deletions

View File

@@ -23,9 +23,10 @@ interface NoteListProps {
isEnabled: boolean;
ntxId: string | null | undefined;
media: ViewModeMedia;
onReady: () => void;
}
export default function NoteList<T extends object>(props: Pick<NoteListProps, "displayOnlyCollections" | "media">) {
export default function NoteList<T extends object>(props: Pick<NoteListProps, "displayOnlyCollections" | "media" | "onReady">) {
const { note, noteContext, notePath, ntxId } = useNoteContext();
const isEnabled = noteContext?.hasNoteList();
return <CustomNoteList note={note} isEnabled={!!isEnabled} notePath={notePath} ntxId={ntxId} {...props} />