{#if header} {#if title}
{:else}
{/if}
{/if}
{#each items.filter((x) => x.label.toLowerCase().includes(search.toLowerCase())) as item}
{ dispatch('close', item) }}>
{#if item.image}
{:else} {#if typeof (icon) === 'string'}
{:else}
{/if} {/if}
{item.label}
{/each}