{ const results = await getClient(instance).search({ q: q || ' ', type_: 'Users', limit: 20, listing_type: listing_type, sort: 'TopAll', }) return results.users.map((c) => c.person) }} extractName={(c) => `${c.name}@${new URL(c.actor_id).hostname}`} on:select bind:query={q} {showWhenEmpty} {...$$restProps} let:item let:select >
{#if showWhenEmpty} dispatcher('select', undefined)}>
None
{:else} No results. {/if}
select(item)}>
{item.name} {new URL(item.actor_id).hostname}