{#snippet spaceHeader()} {#if showMenu} {/if} {/snippet} {#snippet spaceNavItems()} Space Details {#if hasNip29($relay)} Recent Activity {:else} Chat {/if} Directory {#if showLibrary} Library {/if} {#if ENABLE_ZAPS && $spaceKinds.has(ZAP_GOAL)} Goals {/if} {#if $spaceKinds.has(THREAD)} Threads {/if} {#if $spaceKinds.has(CLASSIFIED)} Classifieds {/if} {#if $spaceKinds.has(EVENT_TIME)} Calendar {/if} {#if $spaceKinds.has(POLL)} Polls {/if} {#if hasNip29($relay)} Search {/if} {/snippet} {#snippet spaceRooms()} {#if hasNip29($relay)} {#if $userRooms.length > 0} {#if !mobile}
{/if} Your Rooms {/if} {#each $userRooms as h (h)} {/each} {#if $otherRooms.length > 0} {#if !mobile}
{/if} {#if $userRooms.length > 0} Other Rooms {:else} Rooms {/if} {/if} {#if $otherRooms.length > 20} {/if} {#each $roomSearch.searchValues(term) as h (h)} {/each} {#if $otherVoiceRooms.length > 0} {#if !mobile}
{/if} Voice Rooms {#each $otherVoiceRooms as h (h)} {/each} {/if} {#if $canCreateRoom} Create room {/if} {/if} {/snippet} {#snippet spaceFooter()} {/snippet}
{#if mobile}
{@render spaceHeader()}
Space {@render spaceNavItems()}
{#if hasNip29($relay) && ($userRooms.length > 0 || $otherRooms.length > 0 || $otherVoiceRooms.length > 0 || $canCreateRoom)}
{@render spaceRooms()}
{/if}
{@render spaceFooter()}
{:else}
{@render spaceHeader()}
{@render spaceNavItems()} {@render spaceRooms()}
{@render spaceFooter()}
{/if}