{#if variant === 'action'} add to list {:else} Add to list {/if} add to list {#if loading}
loading lists…
{:else if lists.length > 0}
{#each lists as list (list.uri)} void toggleList(list, checked)} closeOnSelect={false} disabled={pendingUris.includes(list.uri)} textValue={list.name} class="flex min-h-9 items-center gap-3 rounded-lg px-2.5 py-2 text-sm outline-none select-none data-disabled:opacity-50 data-highlighted:bg-white/10" > {#snippet children({ checked })} {list.name} {#if pendingUris.includes(list.uri)} {:else if checked} {/if} {/snippet} {/each}
{:else if !errorMessage}
No lists yet.
{/if}
{#if errorMessage} {/if} new list