{#if app.profile?.isGuest}

{t('profile.guestLocked')}

{:else}

{t('friends.add')}

{#if code} {@const tg = shareLink(friendCodeParam(code.code))}
{t('friends.codeHint')} ยท {t('friends.codeExpires', { time: codeTime(code.expiresAtUnix) })} {#if tg} {/if}
{:else} {/if}
{#if incoming.length}

{t('friends.incoming')}

{#each incoming as r (r.accountId)}
{r.displayName}
{/each}
{/if}

{t('friends.yours')}

{#if friends.length}
{#each friends as f (f.accountId)}
{f.displayName}
{/each}
{:else}

{t('friends.none')}

{/if}
{#if blocked.length || robotBlocks.length}

{t('friends.blockedList')}

{#each blocked as b (b.accountId)}
{b.displayName}
{/each} {#each robotBlocks as r (r.id)}
{r.displayName}
{/each}
{/if} {#if blockTarget} (blockTarget = null)}>

{blockTarget.displayName}

{/if} {#if unfriendTarget} (unfriendTarget = null)}>

{unfriendTarget.displayName}

{/if} {/if}