Users Search and manage user details.
{totalUsers}
{ if ((e as KeyboardEvent).key === 'Enter') searchUsers(); }} />
{#if initialLoad} {#each Array(3) as _, i (i)}
{/each} {:else if users.length === 0}
{userQuery ? 'No users found matching your search.' : 'No users found.'}
{:else}
{#each users as user (user.id)}
{formatUserName(user.fullName, user.previousFirstName, user.previousLastName)}
{user.email || '—'} • {user.phone || '—'}
{/each}
{/if}
{#if !initialLoad && totalPages > 1}
Page {currentPage} of {totalPages}
{/if}