diff --git a/frontend/components/Note/NoteDetails.tsx b/frontend/components/Note/NoteDetails.tsx index fc4bb68..29518cf 100644 --- a/frontend/components/Note/NoteDetails.tsx +++ b/frontend/components/Note/NoteDetails.tsx @@ -7,6 +7,7 @@ import { TagIcon, FolderIcon, } from '@heroicons/react/24/solid'; +import { DocumentDuplicateIcon } from '@heroicons/react/24/outline'; import { useToast } from '../Shared/ToastContext'; import ConfirmDialog from '../Shared/ConfirmDialog'; import NoteModal from './NoteModal'; @@ -93,6 +94,16 @@ const NoteDetails: React.FC = () => { setIsNoteModalOpen(true); }; + const handleCopyNote = async () => { + if (!note) return; + try { + await navigator.clipboard.writeText(note.content); + showSuccessToast(t('notes.copiedToClipboard', 'Note content copied to clipboard')); + } catch (err) { + console.error('Error copying to clipboard:', err); + } + }; + const handleCreateProject = async (name: string) => { try { const newProject = await createProject({ @@ -209,6 +220,14 @@ const NoteDetails: React.FC = () => { {/* Action Buttons */}
+