{m.settings_activity_title()}

{m.settings_activity_desc()}

{#if totalCount !== null} {m.settings_activity_count({ count: String(totalCount) })} {/if}
{#each filters as filter} {/each}
{#if isLoading}
{:else if filteredEntries.length === 0 && initialLoaded}
{:else}
{#each groupedEntries() as group}
{group.label}
{#each group.entries as entry (entry.id)}
{getActivityIcon(entry.action)}

{getDescription(entry)}

{#if entry.profiles}
{entry.profiles.full_name ?? entry.profiles.email}
{/if} · {formatRelativeDate(entry.created_at)}
{getEntityTypeLabel(entry.entity_type)}
{/each} {/each}
{#if isLoadingMore} {:else if hasMore} {:else if entries.length > 0}

{m.settings_activity_end()}

{/if}
{/if}