{#each categories as cat (cat.key)} {@const pref = prefs[cat.key]}
toggleExpand(cat.key)}>
{cat.label}
{summaryText(pref)}
›
{#if expandedCategory === cat.key}
{cat.desc}
Push notifications
toggle(cat.key, 'push')} />
In-app notifications
toggle(cat.key, 'inApp')} />
From
setFrom(cat.key, 'all')} />
Everyone
setFrom(cat.key, 'follows')} />
People I follow
{/if} {/each}