2025-10-06 18:23:19 +00:00
|
|
|
<script lang="ts">
|
|
|
|
|
import cx from "classnames"
|
|
|
|
|
import Link from "@lib/components/Link.svelte"
|
2025-10-30 22:36:14 +00:00
|
|
|
import RoomName from "@app/components/RoomName.svelte"
|
2026-06-08 21:14:40 +00:00
|
|
|
import {makeSpacePath} from "@app/routes"
|
2025-10-06 18:23:19 +00:00
|
|
|
|
|
|
|
|
type Props = {
|
2025-10-30 22:33:34 +00:00
|
|
|
h: string
|
2025-10-06 18:23:19 +00:00
|
|
|
url: string
|
|
|
|
|
class?: string
|
|
|
|
|
unstyled?: boolean
|
|
|
|
|
}
|
|
|
|
|
|
2025-10-30 22:33:34 +00:00
|
|
|
const {h, url, unstyled, ...props}: Props = $props()
|
2025-10-06 18:23:19 +00:00
|
|
|
|
2025-10-30 22:33:34 +00:00
|
|
|
const path = makeSpacePath(url, h)
|
2025-10-06 18:23:19 +00:00
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
<Link href={path} class={cx(props.class, {"link-content bg-alt": !unstyled})}>
|
2025-10-30 22:36:14 +00:00
|
|
|
#<RoomName {h} {url} />
|
2025-10-06 18:23:19 +00:00
|
|
|
</Link>
|