<template>
  <view :class="`status_tab status_tab_${props?.level}`">
    <up-icon v-if="props?.level === 'Urgent'" name="info-circle-fill" size="14" color="#EF4444" />
    <!-- <up-icon v-else name="clock-fill" size="14" color="#3B82F6" /> -->
    <hs-enum-tag :value="props?.level" :Enums="HouseWorkOrdersLevelEnum" />
  </view>
</template>
<script setup lang="ts">
import { HouseWorkOrdersLevelEnum } from '@/gen/Enums'
const props = defineProps(['level'])
</script>
<style lang="scss" scoped>
.status_tab {
  display: flex;
  align-items: center;
  color: #3b82f6;
  font-size: 24rpx;
  background-color: #e6f1ff;
  border-radius: 100rpx;
  padding: 6rpx 16rpx;
  margin-left: 10rpx;
  text {
    padding-left: 6rpx;
  }
}
.status_tab_Urgent {
  color: #ef4444;
  background-color: #ffdcdc;
}
</style>
