2026-02-04 01:09:30 +00:00
|
|
|
<script lang="ts">
|
|
|
|
|
import type {TrustedEvent} from "@welshman/util"
|
|
|
|
|
import {getTagValue} from "@welshman/util"
|
|
|
|
|
import {ucFirst} from "@lib/util"
|
2026-06-24 20:56:53 +00:00
|
|
|
import Badge from "@lib/components/Badge.svelte"
|
2026-02-04 01:09:30 +00:00
|
|
|
|
|
|
|
|
type Props = {
|
|
|
|
|
event: TrustedEvent
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
const {event}: Props = $props()
|
|
|
|
|
|
|
|
|
|
const status = getTagValue("status", event.tags)
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
{#if status}
|
2026-06-24 20:56:53 +00:00
|
|
|
<Badge variant={status !== "active" ? "primary" : "neutral"} class="rounded-full">
|
2026-02-04 01:09:30 +00:00
|
|
|
{ucFirst(status)}
|
2026-06-24 20:56:53 +00:00
|
|
|
</Badge>
|
2026-02-04 01:09:30 +00:00
|
|
|
{/if}
|