+
+
Notes
+
- {notes.length === 0 ? (
-
} title="Your notes live here" hint="Capture ideas, lists and reminders. Tap + to start." />
+ {/* Search */}
+
+
+ setQ(e.target.value)} placeholder="Search notes, lists, labels…" className="flex-1 bg-transparent py-3 outline-none placeholder:text-muted" />
+ {q && }
+
+
+ {visible.length === 0 ? (
+
} title={showArchived ? 'No archived notes' : 'Your notes live here'} hint={showArchived ? undefined : 'Capture ideas, checklists and reminders. Tap + to start.'} />
) : (
<>
- {pinned.length > 0 &&
Pinned
}
+ {pinned.length > 0 &&
Pinned
}
{pinned.length > 0 && grid(pinned)}
- {others.length > 0 && pinned.length > 0 &&
Others
}
+ {others.length > 0 && pinned.length > 0 &&
Others
}
{grid(others)}
>
)}
+ {/* FAB cluster */}
+ {!showArchived && (
+
+
+
+
+ )}
+
{editing && (
-
+
-
-
+
+ { deleteNote(editing.id); setOpen(false); setEditing(null) }} className="text-rose-400">
+
-
patch({ title: e.target.value })} className="!border-0 !bg-transparent !px-0 text-lg font-bold" />
-