Add space status indicator #245

This commit is contained in:
Jon Staab
2025-10-20 17:05:22 -07:00
parent e5b8987a9d
commit 7476767aa7
6 changed files with 93 additions and 47 deletions
@@ -0,0 +1,13 @@
<script lang="ts">
import StatusIndicator from "@lib/components/StatusIndicator.svelte"
import {deriveSocketStatus} from "@app/core/state"
type Props = {
url: string
}
const {url}: Props = $props()
const status = deriveSocketStatus(url)
</script>
<StatusIndicator class="bg-{$status.theme}">{$status.title}</StatusIndicator>