import { useTranslation } from "react-i18next"; import type { DashboardPeriod } from "../../shared/types"; const PERIODS: DashboardPeriod[] = ["month", "3months", "6months", "12months", "all"]; interface PeriodSelectorProps { value: DashboardPeriod; onChange: (period: DashboardPeriod) => void; } export default function PeriodSelector({ value, onChange }: PeriodSelectorProps) { const { t } = useTranslation(); return (
{PERIODS.map((p) => ( ))}
); }