{#each categories as cat (cat.key)} {@const pref = prefs[cat.key]} {#if expandedCategory === cat.key}

{cat.desc}

From

{/if} {/each}