import { apiClient } from "./client";

export type DashboardSummary = {
  projects: number;
  repositories: number;
  sshKeys: number;
  recentActivity: string[];
};

export const getDashboardSummary = async (): Promise<DashboardSummary> => {
  const response = await apiClient.get<DashboardSummary>("/dashboard/summary");
  return response.data;
};
