import type { PageProps as InertiaPageProps } from '@inertiajs/core';
import type { ActiveSubscription } from './subscription';

export interface AuthUser {
    id: number;
    name: string;
    email: string;
    uname?: string;
    is_old_client?: boolean;
    ActiveSubscription?: ActiveSubscription | null;
    companyInfo?: { name?: string };
}

export interface PageProps extends InertiaPageProps {
    auth: {
        user: AuthUser | null;
        company_name?: string | null;
    };
    tenant?: string;
    billing: {
        vat_rate: number;
        payg_threshold: number;
    };
    integrations: {
        zatca_apply_form_url: string | null;
    };
    integrations: {
        zatca_apply_form_url: string | null;
    };
}
