import { TldrawUiButton, TldrawUiDropdownMenuContent, TldrawUiDropdownMenuGroup, TldrawUiDropdownMenuItem, TldrawUiDropdownMenuRoot, TldrawUiDropdownMenuTrigger, TldrawUiIcon, useEditor, useTranslation, useValue, } from 'tldraw' import { commentsHidden, toggleCommentsHidden } from './state' // A keyboard-shortcut glyph, not translatable copy — kept out of JSX as a constant. const HIDE_SHORTCUT = '⇧C' /** The overflow (⋯) dropdown in the sidebar header. For now it holds the hide/show-comments * toggle; it's the home for later comment-wide controls (notifications, mark all as read). * @public @react */ export function CommentsOverflowMenu() { const editor = useEditor() const msg = useTranslation() const hidden = useValue('comments hidden', () => commentsHidden.get(editor), [editor]) return ( ) }