feat(note_bars/collection): add a help button

This commit is contained in:
Elian Doran
2025-12-11 20:19:06 +02:00
parent 8ab9e30404
commit c76ff2d371
3 changed files with 27 additions and 4 deletions

View File

@@ -300,8 +300,9 @@ function ExportImageButtons({ note, triggerEvent, isDefaultViewMode }: FloatingB
function InAppHelpButton({ note }: FloatingButtonContext) {
const helpUrl = getHelpUrlForNote(note);
const isEnabled = !!helpUrl && (!isNewLayout || (note?.type !== "book"));
return !!helpUrl && (
return isEnabled && (
<FloatingButton
icon="bx bx-help-circle"
text={t("help-button.title")}