mirror of
https://github.com/Zproger/Aurum.git
synced 2026-10-17 04:56:40 +07:00
Aurum — a self-hosted personal finance operating system: cash flow, net worth tracking, budgets, goals, recurring payments, reports, proactive alerts, and a compound-interest returns calculator, all bilingual (RU/EN) and mobile-first. Ships as a three-container Docker Compose stack (Postgres + FastAPI + nginx-served React frontend). See README.md for setup and CONTRIBUTING.md for development.
10 lines
308 B
TypeScript
10 lines
308 B
TypeScript
import { useQuery } from "@tanstack/react-query";
|
|
import { fetchDashboardSummary } from "@/api/dashboard";
|
|
|
|
export function useDashboardSummary(year: number, month: number) {
|
|
return useQuery({
|
|
queryKey: ["dashboard-summary", year, month],
|
|
queryFn: () => fetchDashboardSummary(year, month),
|
|
});
|
|
}
|