feat(layout/note_actions): integrate in-app help button

This commit is contained in:
Elian Doran
2025-12-15 10:24:24 +02:00
parent b725dbea7e
commit adae7fa03b
2 changed files with 16 additions and 1 deletions

View File

@@ -308,7 +308,7 @@ function ExportImageButtons({ note, triggerEvent, isDefaultViewMode }: FloatingB
function InAppHelpButton({ note }: FloatingButtonContext) {
const helpUrl = getHelpUrlForNote(note);
const isEnabled = !!helpUrl && (!isNewLayout || (note?.type !== "book"));
const isEnabled = !!helpUrl && !isNewLayout;
return isEnabled && (
<FloatingButton