<script>
 export let status = null;
</script>

{#if status}
    <span
        class="badge"
        class:bg-success={status == "success"}
        class:bg-danger={status == "failure" || status == "killed"}
        class:bg-warning={status == "pending" || status == "running"}
        class:bg-dark={status != "success" && status != "failure" && status != "killed" && status != "pending" && status != "running"}
    >
        {status}
    </span>
{/if}
