Show notification badge on voice room item

This commit is contained in:
Jon Staab
2026-03-25 15:35:00 -07:00
parent 6c9bdb2ccd
commit 6ebe792ce5
2 changed files with 6 additions and 6 deletions
+3 -1
View File
@@ -25,9 +25,10 @@
url: string
h: string
replaceState?: boolean
notification?: boolean
}
const {url, h, replaceState = false}: Props = $props()
const {url, h, replaceState = false, notification = false}: Props = $props()
const participants = deriveVoiceParticipants(url, h)
const isActive = $derived(
@@ -61,6 +62,7 @@
<SecondaryNavItem
href={makeRoomPath(url, h)}
{replaceState}
{notification}
onclick={handleClick}
class={cx("!items-start", isActive && "!bg-base-100 !text-base-content")}>
<div class="flex w-full min-w-0 flex-col gap-2">