flotilla/src/app/components/PrimaryNavItemSpace.svelte

20 lines
535 B
Svelte
Raw Normal View History

2024-11-14 18:53:13 +00:00
<script lang="ts">
import {displayRelayUrl} from "@welshman/util"
import PrimaryNavItem from "@lib/components/PrimaryNavItem.svelte"
import SpaceAvatar from "@app/components/SpaceAvatar.svelte"
import {makeSpacePath} from "@app/routes"
2024-12-16 19:24:10 +00:00
import {notifications} from "@app/notifications"
2024-11-14 18:53:13 +00:00
2025-02-04 00:37:14 +00:00
let {url} = $props()
2024-11-14 18:53:13 +00:00
const path = makeSpacePath(url)
</script>
<PrimaryNavItem
title={displayRelayUrl(url)}
href={path}
class="tooltip-right"
2024-12-16 19:24:10 +00:00
notification={$notifications.has(path)}>
2024-11-14 18:53:13 +00:00
<SpaceAvatar {url} />
</PrimaryNavItem>