{#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} {t('friends.shareTelegram')} {/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}

{t('friends.blockedList')}

{#each blocked as b (b.accountId)}
{b.displayName}
{/each}
{/if} {/if}