import { For, Show, createSignal } from "solid-js"; import type { Note } from "@/api/client"; import { NoteCard } from "@/components/notes/note-card"; import { NoteReaderPanel } from "@/components/notes/note-reader-panel"; import { EmptyState } from "@/components/ui/empty-state"; export function NoteList(props: { notes: Note[]; emptyTitle: string; emptyDescription?: string; onUpdate: (id: string, values: { title: string; content: string }) => Promise; onDelete: (id: string) => Promise; }) { const [readingNote, setReadingNote] = createSignal(null); return ( <> 0} fallback={ } >
    {(note) => (
  • )}
{ if (!open) setReadingNote(null); }} /> ); }