only show invoicing tab when module is activated

This commit is contained in:
Gregor Vostrak
2025-04-30 12:06:48 +02:00
parent 8c66068663
commit da5fc3f113
4 changed files with 17 additions and 4 deletions

View File

@@ -9,6 +9,14 @@ export function isBillingActivated() {
return page.props.has_billing_extension;
}
export function isInvoicingActivated() {
const page = usePage<{
has_invoicing_extension: boolean;
}>();
return page.props.has_invoicing_extension;
}
export function isInTrial() {
const page = usePage<{
billing: {