/**
 * API для бейджей нижнего меню навигации (один запрос).
 * GET /api/nav-badges/
 */
import apiClient from '@/lib/api-client';

export interface NavBadges {
  lessons_today: number;
  chat_unread: number;
  homework_pending: number;
  feedback_pending: number;
  mentorship_requests_pending?: number;
}

export async function getNavBadges(): Promise<NavBadges> {
  const response = await apiClient.get<NavBadges>('/nav-badges/', {
    cache: false,
  });
  return response.data;
}
