flotilla/src/app/components/MenuSpaceRoomItem.svelte

19 lines
620 B
Svelte
Raw Normal View History

2024-11-14 18:53:13 +00:00
<script lang="ts">
import Icon from "@lib/components/Icon.svelte"
import SecondaryNavItem from "@lib/components/SecondaryNavItem.svelte"
2024-12-10 01:04:39 +00:00
import ChannelName from "@app/components/ChannelName.svelte"
2024-11-14 18:53:13 +00:00
import {makeSpacePath} from "@app/routes"
import {deriveNotification, getRoomFilters} from "@app/notifications"
export let url
export let room
const path = makeSpacePath(url, room)
const notification = deriveNotification(path, getRoomFilters(room), url)
</script>
<SecondaryNavItem href={path} notification={$notification}>
<Icon icon="hashtag" />
2024-12-10 01:04:39 +00:00
<ChannelName {url} {room} />
2024-11-14 18:53:13 +00:00
</SecondaryNavItem>