forked from coracle/flotilla
25 lines
662 B
Svelte
25 lines
662 B
Svelte
<script lang="ts">
|
|
import SecondaryNavItem from "@lib/components/SecondaryNavItem.svelte"
|
|
import ChannelNameWithImage from "@app/components/ChannelNameWithImage.svelte"
|
|
import {makeRoomPath} from "@app/util/routes"
|
|
import {notifications} from "@app/util/notifications"
|
|
|
|
interface Props {
|
|
url: any
|
|
h: any
|
|
notify?: boolean
|
|
replaceState?: boolean
|
|
}
|
|
|
|
const {url, h, notify = false, replaceState = false}: Props = $props()
|
|
|
|
const path = makeRoomPath(url, h)
|
|
</script>
|
|
|
|
<SecondaryNavItem
|
|
href={path}
|
|
{replaceState}
|
|
notification={notify ? $notifications.has(path) : false}>
|
|
<ChannelNameWithImage {url} {h} />
|
|
</SecondaryNavItem>
|