{#if relayAccess.state !== "open" && relayAccess.state !== "checking"}
{:else}
(menuOpen = true)} />
{@render children()}
{#if showChat}
(chatExpanded = !chatExpanded)} mobileActive={mobileView === "chat"} /> {:else if showDiscussions}
{/if}
{#if showChat}
(mobileView = "forum")} aria-pressed={mobileView === "forum"} class="flex flex-1 flex-col items-center gap-0.5 py-2 text-xs font-medium {mobileView === 'forum' ? 'text-accent' : 'text-neutral-500 dark:text-neutral-400'}" >
Forum
(mobileView = "chat")} aria-pressed={mobileView === "chat"} class="flex flex-1 flex-col items-center gap-0.5 py-2 text-xs font-medium {mobileView === 'chat' ? 'text-accent' : 'text-neutral-500 dark:text-neutral-400'}" >
Chat
{/if}
{/if}
(menuOpen = false)} {mode} {activeRoom} {activeResource} {contactsActive} />
{#if SEARCH_ENABLED}
{/if}