{#if loaded}
{}} >
{$i18n.t('This will delete')}
{selectedNote.title}
.
{#if Object.keys(notes).length > 0} {#each Object.keys(notes) as timeRange}
{$i18n.t(timeRange)}
{#each notes[timeRange] as note, idx (note.id)}
{note.title}
{#if note.data?.md} {note.data?.md} {:else} {$i18n.t('No content')} {/if}
{dayjs(note.updated_at / 1000000).fromNow()}
{$i18n.t('By {{name}}', { name: capitalizeFirstLetter( note?.user?.name ?? note?.user?.email ?? $i18n.t('Deleted User') ) })}
{/each}
{/each} {:else}
{$i18n.t('No Notes')}
{$i18n.t('Create your first note by clicking on the plus button below.')}
{/if}
{ createNoteHandler(); }} >
{:else}
{/if}