{#if shouldShowHelpPanel && info} (shouldShowHelpPanel = false)} {info} /> {/if} { sidebarStore.toggle(); }} onmousedown={(event: MouseEvent) => { if (sidebarStore.isOpen) { // stops event from reaching the default handler when clicking outside of the sidebar event.stopPropagation(); } }} class="sidebar:hidden" /> {#if $featureFlags.search} {/if} {#if $featureFlags.search} {/if} {#if !page.url.pathname.includes('/admin') && showUploadButton} {$t('upload')} {/if} (shouldShowHelpPanel = false), }} > (shouldShowHelpPanel = !shouldShowHelpPanel)} aria-label={$t('support_and_feedback')} /> (shouldShowAccountInfoPanel = false), onEscape: () => (shouldShowAccountInfoPanel = false), }} > (shouldShowAccountInfo = true)} onfocus={() => (shouldShowAccountInfo = true)} onblur={() => (shouldShowAccountInfo = false)} onmouseleave={() => (shouldShowAccountInfo = false)} onclick={() => (shouldShowAccountInfoPanel = !shouldShowAccountInfoPanel)} > {#key $user} {/key} {#if shouldShowAccountInfo && !shouldShowAccountInfoPanel} {$user.name} {$user.email} {/if} {#if shouldShowAccountInfoPanel} authManager.logout()} /> {/if}
{$user.name}
{$user.email}