<script setup lang="ts">
import {BadgeVariant} from "@/Types/types";

defineProps<{
    variant?: BadgeVariant
}>();
</script>

<template>
    <span v-if="variant !== 'unspecified'" class="class-badge" :class="variant ? `class-${variant}-global` : 'class-economy-global'">
        <slot />
    </span>
</template>

<style scoped>
.class-badge {
    display: inline-block;
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.68rem;
    letter-spacing: 0.1em;
    padding: 0.18rem 0.55rem;
    border-radius: 2px;
    text-transform: uppercase;
    cursor: pointer;
}

</style>
