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-11 22:10:20 +00:00
|
|
|
import {spacesNotifications} from "@app/notifications"
|
2024-11-14 18:53:13 +00:00
|
|
|
|
|
|
|
|
export let url
|
|
|
|
|
|
|
|
|
|
const path = makeSpacePath(url)
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
<PrimaryNavItem
|
|
|
|
|
title={displayRelayUrl(url)}
|
|
|
|
|
href={path}
|
|
|
|
|
class="tooltip-right"
|
2024-12-11 22:10:20 +00:00
|
|
|
notification={$spacesNotifications.includes(path)}>
|
2024-11-14 18:53:13 +00:00
|
|
|
<SpaceAvatar {url} />
|
|
|
|
|
</PrimaryNavItem>
|