function NoteCard({ note, onClick, onDelete, onExtract, onChangeSubject, onChangeGroup, onArchive }) { const [showMenu, setShowMenu] = useState(false); const handleMenuClick = (e, action) => { e.stopPropagation(); setShowMenu(false); action(); }; return (
{/* Three-dot menu button */} {/* Dropdown menu */} {showMenu && (
)}

{note.canvas_enabled && 'âœī¸ '}{note.title}

{new Date(note.created_at).toLocaleString()} â€ĸ {note.block_count} blocks{note.extraction_completed && ' â€ĸ Extracted'}

{note.subject && {note.subject}} {note.note_group && {note.note_group}}
); } // Export to global scope window.NoteCard = NoteCard;