import { apiClient } from '@/lib/api/client';
import type { DashboardStats, RealtimeData } from '@/types/dashboard';

export const dashboardApi = {
  getStats: async (): Promise<DashboardStats> => {
    const response = await apiClient.get('/dashboard');
    return response.data.data;
  },

  getRealtimeData: async (): Promise<RealtimeData> => {
    const response = await apiClient.get('/dashboard/realtime');
    return response.data.data;
  },
};
