import api from "./api.js";
import { unwrapData } from "./http.js";

export async function getDashboardStats(period = "30d") {
  const res = await api.get("/dashboard/stats", { params: { period } });
  return unwrapData(res);
}
