{#each sortedPinnedNotes as note (note.id)}
{ selectedChatId = null; chatId.set(''); if ($mobile) { showSidebar.set(false); } }} draggable="false" >
{note.title}
{ await toggleNotePinnedStatusById(localStorage.token, note.id); const _pinnedNotes = await getPinnedNoteList(localStorage.token).catch(() => []); pinnedNotes.set(_pinnedNotes); }} aria-label={$i18n.t('Unpin')} >
{/each}