flotilla/src/app/components/ProfileCircles.svelte

23 lines
528 B
Svelte
Raw Normal View History

2024-10-04 00:04:00 +00:00
<script lang="ts">
2025-12-01 18:26:43 +00:00
import {getProfile} from "@welshman/app"
2024-10-04 00:04:00 +00:00
import ProfileCircle from "@app/components/ProfileCircle.svelte"
type Props = {
pubkeys: string[]
size?: number
}
const {pubkeys, size = 7}: Props = $props()
2024-10-04 00:04:00 +00:00
</script>
<div class="flex pr-3">
2025-12-01 18:26:43 +00:00
{#each pubkeys
.filter(p => getProfile(p)?.picture)
.toSorted()
.slice(0, 15) as pubkey (pubkey)}
2024-10-04 00:04:00 +00:00
<div class="z-feature -mr-3 inline-block">
<ProfileCircle class="h-8 w-8 bg-base-300" {pubkey} {size} />
2024-10-04 00:04:00 +00:00
</div>
{/each}
</div>