Some checks failed
ci / ci (22, ubuntu-latest) (push) Failing after 25m52s
Made-with: Cursor
16 lines
415 B
Vue
16 lines
415 B
Vue
<script setup lang="ts">
|
|
import { STATUS_LABELS, STATUS_COLORS } from '~/types/used-sale'
|
|
import type { SaleStatus } from '~/types/used-sale'
|
|
|
|
const props = defineProps<{
|
|
status: SaleStatus
|
|
}>()
|
|
|
|
const label = computed(() => STATUS_LABELS[props.status])
|
|
const color = computed(() => STATUS_COLORS[props.status])
|
|
</script>
|
|
|
|
<template>
|
|
<UBadge :color="color as any" variant="subtle" :label="label" />
|
|
</template>
|