import { I } from "../../ui/icons.jsx"; import { fmtDate } from "../../ui/format"; import { FONT_SERIF, FONT_UI } from "../../ui/theme"; /** The middle column: every note in the selected folder, newest or best match first. */ export function NoteList({ T, isMobile, title, notes, activeNote, isTrashView, trashedCount, snippetFor, onToggleSidebar, onSelectNote, onNoteContextMenu, onCreateNote, onEmptyTrash, }) { return (

{title}

{!isTrashView && ( )} {isTrashView && trashedCount > 0 && ( )}
{notes.length === 0 ? (
{isTrashView ? "🗑️" : "📝"}
{isTrashView ? "Trash is empty" : "No notes yet"}
{!isTrashView && ( )}
) : ( notes.map((note) => { const snippet = snippetFor(note.id); return ( ); }) )}
); }