<script setup lang="ts">
import {formatIsk} from "@/formaters";

interface Props {
  amount: number;
}

const { amount } = defineProps<Props>();
</script>

<template>
  <span :class="amount >= 0 ? 'text-emerald-400' : 'text-amber-700'">{{ formatIsk(amount) }}</span>
</template>