<template>
  <v-chip :color="badgeColor" small>
    {{ deposit10PercentStatus }}
  </v-chip>
</template>

<script lang="ts" setup>
import { defineProps, computed } from 'vue';
import type { Deposit10PercentStatus } from '~/utils/types';

const props = defineProps<{
  deposit10PercentStatus: Deposit10PercentStatus;
}>();

const colorMapping: Record<Deposit10PercentStatus, string> = {
  "Awaiting Further Details": "orange",
  "Pending": "amber",
  "Received": "green"
};

const badgeColor = computed(() => {
  return colorMapping[props.deposit10PercentStatus] || 'grey';
});
</script>

<style scoped>
.v-chip {
  font-size: 0.8rem;
}
</style>
