Files
2024-12-06 16:55:20 +05:30

38 lines
838 B
Vue

<template>
<Dialog
v-model="props.showInvoiceDialog"
:options="{
size: '3xl',
title: 'Total usage for this month'
}"
>
<template #body-content>
<template v-if="upcomingInvoice.data.upcoming_invoice">
<div
v-if="upcomingInvoice.data.upcoming_invoice.status === 'Empty'"
class="text-base text-gray-600"
>
Nothing to show
</div>
<InvoiceTable
v-else
:invoiceId="upcomingInvoice.data.upcoming_invoice.name"
/>
</template>
<template v-else>
<div class="text-base text-gray-600">Nothing to show</div>
</template>
</template>
</Dialog>
</template>
<script setup>
import { inject, ref } from 'vue';
import InvoiceTable from '../InvoiceTable.vue';
const { upcomingInvoice } = inject('billing');
const props = defineProps({
showInvoiceDialog: Boolean
});
</script>