Show custom icon for voice rooms

This commit is contained in:
mplorentz
2026-03-10 12:06:33 -04:00
parent 97b81b2ddd
commit 64617f585b
2 changed files with 5 additions and 4 deletions
+3 -2
View File
@@ -8,9 +8,10 @@
h: string
url: string
size?: number
fallbackIcon?: string
}
const {url, h, size = 5}: Props = $props()
const {url, h, size = 5, fallbackIcon = Hashtag}: Props = $props()
const room = deriveRoom(url, h)
</script>
@@ -18,5 +19,5 @@
{#if $room.picture}
<ImageIcon src={$room.picture} {size} alt="" class="rounded-lg" />
{:else}
<Icon icon={Hashtag} {size} />
<Icon icon={fallbackIcon} {size} />
{/if}