Files
descrybe/apps/web/src/lib/components/StatusBadge.svelte
T
greeneclipse 8580c996c3 Initial commit of Descrybe v2 without local scratch artifacts.
Drop one-shot tmp/axe scripts and agent i18n scratch so the Gitea tree is deployable.
2026-08-09 22:47:43 +02:00

15 lines
424 B
Svelte

<script lang="ts">
import { statusBadgeLabel, statusBadgeTone } from "$lib/feeds-list-controls";
let { status = "unknown" }: { status?: string | number | null | unknown } = $props();
const label = $derived(statusBadgeLabel(status));
const tone = $derived(statusBadgeTone(label));
</script>
<span
class="inline-flex items-center rounded-md border px-2 py-0.5 text-xs font-medium capitalize {tone}"
>
{label}
</span>