import apiClient from './client'

export interface DashboardStats {
  allocations: number
  completionRate: number
  personnel: number
  pendingApprovals: number
}

export const statsApi = {
  async getDashboardStats(): Promise<DashboardStats> {
    const response = await apiClient.get<DashboardStats>('/stats/dashboard')
    return response.data
  }
}
