mirror of
https://github.com/supermemoryai/supermemory.git
synced 2026-10-07 02:58:11 +00:00
20 lines
456 B
TypeScript
20 lines
456 B
TypeScript
'use client';
|
|
|
|
import React from 'react';
|
|
|
|
import { useCommentAddButton } from '@udecode/plate-comments/react';
|
|
import { MessageSquarePlus } from 'lucide-react';
|
|
|
|
import { ToolbarButton } from './toolbar';
|
|
|
|
export function CommentToolbarButton() {
|
|
const { hidden, props } = useCommentAddButton();
|
|
|
|
if (hidden) return null;
|
|
|
|
return (
|
|
<ToolbarButton tooltip="Comment (⌘+⇧+M)" {...props}>
|
|
<MessageSquarePlus />
|
|
</ToolbarButton>
|
|
);
|
|
}
|