<script setup>
const props = defineProps({
  params: Object
})
</script>

<template>
  <div class="d-inlineFlex items-center gap-5px">
    <div class="tags">
      {{ Number(props.params.data.grandTotal).toLocaleString('de-DE', { style: 'currency', currency: props.params.data.currency || 'EUR' }) }}

<!--      <UIcon v-if="props.params.data.currency == 'EUR'" name="i-mdi-currency-eur" />-->
<!--      <UIcon v-if="props.params.data.currency == 'USD'" name="i-mdi-currency-usd" />-->
<!--      <UIcon v-if="props.params.data.currency == 'GBP'" name="i-mdi-currency-gbp" />-->
      </div>
  </div>
</template>

<style scoped>
.tag {
  width: 40px;
  height: 20px;
}
.greenbt {
color: white;
  background-color: #00a500;
border: 1px solid #00a500;
}

.greybt {
  color: grey;
  border: 1px solid grey;
}

.icons {
  color: white;
}

span[class^='i-mdi'] {
  font-size: 19px;
  margin-top: 4px;
}


</style>