export interface User {
    id: number;
    name: string;
    email: string;
    email_verified_at?: string;
    roles: string[];
    permissions: string[];
    phone?: string;
    address?: string;
    status?: string;
    amount?: number;
}

export type PageProps<
    T extends Record<string, unknown> = Record<string, unknown>,
> = T & {
    appName: string;
    auth: {
        user: User;
    };
    flash: {
        success?: string | null;
        error?: string | null;
        warning?: string | null;
    };
};
