flotilla/src/app/components/ProfileCircles.svelte

19 lines
434 B
Svelte
Raw Normal View History

2024-10-04 00:04:00 +00:00
<script lang="ts">
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">
{#each pubkeys.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>