{#if withHeader}
{#if createItemDialog}
{/if}
{ updateSearchQuery(search) update(sort, resultQuery) }} />
{#if withFilterButton} {/if}
{:else if withFilterButton}
{/if} (resultQuery = e.detail)} />
{#each spaces as space (space._id)} {@const icon = classIcon(client, space._class)} {@const joined = space.members.includes(me)}
{#if icon}
{/if}
{#if joined}
{#if joined}
{/each}
{#if createItemDialog}
{/if}