import { useTranslation } from "react-i18next"; import { useReports } from "../hooks/useReports"; import type { ReportTab } from "../shared/types"; import PeriodSelector from "../components/dashboard/PeriodSelector"; import MonthlyTrendsChart from "../components/reports/MonthlyTrendsChart"; import CategoryBarChart from "../components/reports/CategoryBarChart"; import CategoryOverTimeChart from "../components/reports/CategoryOverTimeChart"; const TABS: ReportTab[] = ["trends", "byCategory", "overTime"]; export default function ReportsPage() { const { t } = useTranslation(); const { state, setTab, setPeriod } = useReports(); return (