<script>
 export let score = 0;
</script>

<span
    class="badge"
    class:bg-success={score >= 18}
    class:bg-info={score < 18 && score >= 15}
    class:bg-warning={score < 15 && score >= 9}
    class:bg-danger={score < 9}
    class:bg-dark={score == "N/A"}
>
    {score}
</span>
