flotilla/src/app/components/RelayDescription.svelte

17 lines
319 B
Svelte
Raw Normal View History

2024-10-09 21:19:27 +00:00
<script lang="ts">
import Content from "@app/components/Content.svelte"
2026-07-28 16:16:26 +00:00
import {relays} from "@app/core"
2024-10-09 21:19:27 +00:00
type Props = {
url: string
}
2024-10-09 21:19:27 +00:00
const {url}: Props = $props()
2026-07-28 16:16:26 +00:00
const relay = $relays.one(url)
2024-10-09 21:19:27 +00:00
</script>
2025-10-24 16:38:57 +00:00
{#if $relay?.description}
<Content event={{content: $relay.description, tags: []}} />
2024-10-09 21:19:27 +00:00
{/if}