// Dashboard-related TypeScript interfaces

export interface DashboardStats {
    members: {
        total: number;
        active: number;
        new_this_month: number;
        unverified: number;
    };
    savings: {
        total_balance: number;
        accounts_count: number;
    };
    financing: {
        total_portfolio: number;
        active_count: number;
        proposed_count: number;
    };
}

export interface DashboardPageProps {
    stats: DashboardStats;
    overdue_count?: number;
    today_collections?: number;
    npf_ratio?: number;
    recent_activities?: {
        id: number;
        entity_type: string;
        entity_id: number;
        action: string;
        user_id: number | null;
        old_values: string | null;
        new_values: string | null;
        ip_address: string | null;
        user_agent: string | null;
        created_at: string | null;
    }[];
    pending_approvals?: {
        id: number;
        account_number: string;
        member_id: number;
        principal_amount: number;
        status: string;
        created_at: string | null;
    }[];
}
