import { DashboardData } from '../models/dashboard';

export class DashboardController {
  static async getDashboardData(): Promise<DashboardData> {
    // In a real app, this would fetch from database
    const dashboardData: DashboardData = {
      totalUsers: 1250,
      totalRevenue: 45000,
      activeSessions: 89,
      conversionRate: 3.2,
      recentActivity: [
        { id: 1, action: 'New user registered', timestamp: '2024-01-15T10:30:00Z' },
        { id: 2, action: 'Payment processed', timestamp: '2024-01-15T09:45:00Z' },
        { id: 3, action: 'Report generated', timestamp: '2024-01-15T08:20:00Z' },
      ]
    };

    return dashboardData;
  }
}