Untitled

 avatar
unknown
typescript
5 months ago
885 B
1
Indexable
const salesOptions = computed<MenuOption[]>(() => {
    return [
        {
            label: () =>
                !isDraftEvent.value && !isFreeEvent.value
                    ? h(
                          RouterLink,
                          {
                              to: {
                                  name: 'refunds-and-invoicing',
                                  params: {
                                      id: props.event.id as string,
                                  },
                              },
                          },
                          { default: () => 'Invoices & Refunds' },
                      )
                    : 'Invoices & Refunds',
            key: 'refundsAndInvoicing',
            icon: renderIcon('fa-solid fa-file-invoice-dollar'),
            disabled: isDraftEvent.value || isFreeEvent.value,
        },
    ];
});
Editor is loading...
Leave a Comment