{#if group.isLoading}
{:else if group.isError || !group.data}
This account hasn't declared itself a group.
View as a profile
{:else} {@const g = group.data} {@const name = g.displayName || g.handle}
Share
(lightboxSrc = g.avatar!) : undefined} />
{name}
{#if acting}
Signed in as this group
{/if}
@{g.handle}
{#if pool.isSuccess} {@const n = pool.data?.galleries?.length ?? 0}
{n.toLocaleString()}
{n === 1 ? 'gallery' : 'galleries'}
{/if}
{#if g.description}
{/if}
{#if g.url}
{siteLabel}
{/if}
{#if !acting}
{#if member}
Member
Leave
{:else if joinPolicy === 'invite'}
Invite only
{:else}
{joinPolicy === 'open' ? 'Join' : 'Request to join'}
{/if}
{/if} {#if (g.rules ?? []).length}
{g.rules?.length} {g.rules?.length === 1 ? 'rule' : 'rules'}
{#each g.rules ?? [] as rule (rule.uri)}
{rule.title}
{#if rule.text} — {rule.text}{/if}
{/each}
{/if}
{#if lightboxSrc}
(lightboxSrc = null)} /> {/if}
Members' pool
{#if member && !noSpaces}
Add a gallery
{/if}
{#if !$viewer}
This pool is the club's, not the network's. Sign in as a member to see it.
{:else if noSpaces}
{:else if pool.isError}
Only members can see this pool. If you've just joined, reload the page.
{:else}
{/if} {/if}