{#if filteredNotes.length > 0}
    {#each filteredNotes as note}
  • selectNote(note.id, false)} on:keydown={(e) => handleNoteKeydown(e, note.id)} tabindex="0" role="option" aria-selected={currentNote && note.id === currentNote.id} >

    {note.title || "Untitled Note"}

    {formatDate(note.updatedAt)}

  • {/each}
{:else}
{searchQuery ? "No notes match your search" : "No notes yet"}
{/if}