{#if type == 'community'} { const results = await getClient().search({ q: q, auth: jwt, type_: 'Communities', limit: 20, listing_type: listing_type, sort: 'TopAll', }) items = results.communities.map((c) => c.community) }} debounceTime={600} extractName={(c) => c.title} bind:query={q} extractSelected={(c) => { if (c) dispatcher('select', c) }} let:extractName let:extractSelected let:option > extractSelected(option)}> {option.title} {new URL(option.actor_id).hostname} {/if}