{ const users = ( await getClient(instance).search({ q: q || ' ', type_: 'Users', limit: 20, listing_type: listing_type, sort: 'TopAll', }) ).users.map(c => c.person) if (hideOwnUser) { const myself = profile.current.user?.local_user_view.person.id return users.filter(c => c.id != myself) } 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}