forked from coracle/flotilla
Add space status indicator #245
This commit is contained in:
@@ -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>
|
||||
Reference in New Issue
Block a user