2025-10-21 00:05:22 +00:00
|
|
|
<script lang="ts">
|
|
|
|
|
import StatusIndicator from "@lib/components/StatusIndicator.svelte"
|
2026-06-08 22:33:38 +00:00
|
|
|
import {deriveSocketStatus} from "@app/relays"
|
2025-10-21 00:05:22 +00:00
|
|
|
|
|
|
|
|
type Props = {
|
|
|
|
|
url: string
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
const {url}: Props = $props()
|
|
|
|
|
const status = deriveSocketStatus(url)
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
<StatusIndicator class="bg-{$status.theme}">{$status.title}</StatusIndicator>
|