// A short note on a highlight or a bookmark: shown under it, added or edited in place. import { useState } from 'react'; export default function MarkNote({ note = '', onSave, label = 'note', className = '' }) { const [editing, setEditing] = useState(false); const [draft, setDraft] = useState(''); const open = () => { setDraft(note); setEditing(true); }; const save = () => { onSave(draft.trim()); setEditing(false); }; if (editing) { return (