Show custom icon for voice rooms
This commit is contained in:
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user