{#each BOOK_PRESETS as preset (preset.id)} {@const active = bookCollection.isPresetActive(preset)}
(active ? bookCollection.clearView() : bookCollection.applyPreset(preset))} class="shrink-0 rounded-full border px-3 py-1 text-xs whitespace-nowrap transition-colors {active ? 'border-primary bg-primary text-primary-foreground font-medium' : 'border-border text-muted-foreground hover:border-muted-foreground hover:text-foreground'}" > {preset.label}
{/each}