{ const users = ( await getClient(instance).search({ q: q || ' ', type_: 'Users', limit: 20, listing_type: listing_type, sort: 'TopAll', }) ).users.map((c) => c.person) // TODO: Filter out own user when DID comparison is available return users }} extractName={(c) => `${c.name}@${new URL(c.actor_id).hostname}`} bind:query={q} {...rest} > {#snippet noresults()}
{#if showWhenEmpty} dispatcher('select', undefined)}>
None
{:else} No results. {/if}
{/snippet} {#snippet children({ item, select })}
select(item)}>
{item.name} {new URL(item.actor_id).hostname}
{/snippet}