<script setup lang="js">
import currency from "currency.js"

const props = defineProps(["items", "isLoading"])
</script>

<template>
  Total: {{ props.items.reduce((t, c) => t.add(c.TotalAmount), currency(0)) }}
</template>
