{$t('notes.note_editor')}

{#if initialName}

{$t('notes.editing_note')} {initialName}

{/if} {#if (note && user?.pk == note?.user_id) || (collection && user && collection.shared_with.includes(user.uuid)) || !note}
{ if (e.key === 'Enter') { e.preventDefault(); addLink(); } }} />
{#if newNote.links.length > 0}
    {#each newNote.links as link, i}
  • {link}
  • {/each}
{/if} {#if warning}
{warning}
{/if} {#if collection.is_public}
{$t('notes.note_public')}
{/if}
{:else}
{#if newNote.links.length > 0}
    {#each newNote.links as link, i}
  • {link}
  • {/each}
{/if}
{/if}