{#if users === null || total === null}
{:else} {#if users.length > 0}
{#each users as user, userIdx (user?.id ?? userIdx)} {/each}
setSortKey(`group_id:${groupId}`)} >
{$i18n.t('MBR')} {#if orderBy === `group_id:${groupId}`} {#if direction === 'asc'} {:else} {/if} {:else} {/if}
setSortKey('role')} >
{$i18n.t('Role')} {#if orderBy === 'role'} {#if direction === 'asc'} {:else} {/if} {:else} {/if}
setSortKey('name')} >
{$i18n.t('Name')} {#if orderBy === 'name'} {#if direction === 'asc'} {:else} {/if} {:else} {/if}
setSortKey('last_active_at')} >
{$i18n.t('Last Active')} {#if orderBy === 'last_active_at'} {#if direction === 'asc'} {:else} {/if} {:else} {/if}
{ toggleMember(user.id, e.detail); }} />
user
{user.name}
{dayjs(user.last_active_at * 1000).fromNow()}
{:else}
{$i18n.t('No users were found.')}
{/if} {#if total > 30} {/if} {/if}