diff --git a/web/components/editor.tsx b/web/components/editor.tsx index fcdda63f..5050a261 100644 --- a/web/components/editor.tsx +++ b/web/components/editor.tsx @@ -29,6 +29,7 @@ import { EmbedModal } from './editor/embed-modal' import { CheckIcon, CodeIcon, + EyeOffIcon, PhotographIcon, PresentationChartLineIcon, TrashIcon, @@ -170,6 +171,7 @@ function FloatingMenu(props: { editor: Editor | null }) { const isBold = editor.isActive('bold') const isItalic = editor.isActive('italic') const isLink = editor.isActive('link') + const isSpoiler = editor.isActive('spoiler') const setLink = () => { const href = url && getUrl(url) @@ -198,6 +200,11 @@ function FloatingMenu(props: { editor: Editor | null }) { + ) : ( <>