flotilla/src/app/components/RoomItemAddMember.svelte
2026-08-22 10:32:51 -07:00

18 lines
511 B
Svelte

<script lang="ts">
import type {TrustedEvent} from "@welshman/util"
import {tagValues, hexTags} from "@welshman/util"
import ProfileLink from "@app/components/ProfileLink.svelte"
type Props = {
url: string
event: TrustedEvent
}
const {url, event}: Props = $props()
</script>
{#each tagValues(hexTags("p"), event.tags) as pubkey (pubkey)}
<div class="py-1 text-center text-xs opacity-75">
<ProfileLink unstyled class="text-primary" {url} {pubkey} /> joined the room
</div>
{/each}