{#if showInfo}
{/if}
{#if icon}{@render icon()}{:else}
{/if}
{community.community.title}
{#if community.community.deleted}
{/if} {#if community.community.nsfw}
{/if} {#if community.banned_from_community}
{/if} {#if community.community.visibility == 'LocalOnly'}
{/if}
{new URL(community.community.actor_id).hostname}
{#if !showCounts} •
{/if}
(showInfo = !showInfo)}>
{#snippet children({ subscribe, subscribing })}
{ const res = await subscribe() if (res) { const newSubscribed = res.community_view.subscribed != 'NotSubscribed' ? 'Subscribed' : 'NotSubscribed' community.subscribed = newSubscribed addSubscription( community.community, newSubscribed == 'Subscribed', ) } }} size="custom" title={isSubscribed(community.subscribed) ? $t('cards.community.subscribed') : $t('cards.community.subscribe')} color={isSubscribed(community.subscribed) ? 'elevatedLow' : 'primary'} class="{isSubscribed(community.subscribed) ? 'text-slate-600 dark:text-zinc-400' : ''} aspect-square h-8 @md:px-2 @md:min-w-32 @md:aspect-auto" > {#snippet prefix()}
{/snippet}
{#if isSubscribed(community.subscribed)} {$t('cards.community.subscribed')} {:else} {$t('cards.community.subscribe')} {/if}
{/snippet}
{#if showCounts}
{#if community.counts.posts}
{/if} {#if community.counts.subscribers}
{/if} {#if community.counts.comments}
{/if}
{/if}