{#if status}
{@const statusText = getTagValue("status", status.tags) || "error"}
{#if statusText === "ok"}
Active
{:else if statusText === "pending"}
Pending
{:else}
{statusText.replace("-", " ").replace(/^(.)/, x => x.toUpperCase())}
{/if}
{:else}
Inactive
{/if}