import { apiClient } from '@/lib/api-client';
import { DashboardStats, RevenueData } from '@/types';

export const dashboardApi = {
  getStats: () => {
    return apiClient.get<DashboardStats>('/dashboard/stats');
  },

  getRevenueChart: (days: number = 30) => {
    return apiClient.get<RevenueData[]>(`/dashboard/revenue?days=${days}`);
  },

  getRecentBookings: (limit: number = 10) => {
    return apiClient.get<any[]>(`/dashboard/recent-bookings?limit=${limit}`);
  },
};
