flotilla/src/app/components/RelayDescription.svelte

17 lines
328 B
Svelte
Raw Normal View History

2024-10-09 21:19:27 +00:00
<script lang="ts">
2024-10-09 23:15:09 +00:00
import {deriveRelay} from "@welshman/app"
import Content from "@app/components/Content.svelte"
2024-10-09 21:19:27 +00:00
type Props = {
url: string
}
2024-10-09 21:19:27 +00:00
const {url}: Props = $props()
const relay = deriveRelay(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}