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;