{ if (e.target === e.currentTarget) close(); }} onkeydown={(e) => { if (e.key === "Escape") { e.stopPropagation(); close(); } }}>
Settings
{#each TABS as t}
setTab(t.id)}>
{#key anims && tab === t.id ? tabIconKey : 0}
{/key}
{t.label}
{/each}
{#key tabIconKey} {#each TABS as t} {#if t.id === tab}
{/if} {/each} {/key}
{TABS.find(t => t.id === tab)?.label}
{#if tab === "general"}
{:else if tab === "appearance"}
{:else if tab === "reader"}
{:else if tab === "library"}
{:else if tab === "automation"}
{:else if tab === "performance"}
{:else if tab === "keybinds"}
{:else if tab === "storage"}
{:else if tab === "folders"}
{:else if tab === "tracking"}
{:else if tab === "security"}
{:else if tab === "content"}
{:else if tab === "about"}
{:else if tab === "devtools"}
{/if}