import dayjs from "dayjs"; import { ChevronLeftIcon, ChevronRightIcon } from "lucide-react"; import i18n from "@/i18n"; import type { MonthNavigatorProps } from "@/types/statistics"; export const MonthNavigator = ({ visibleMonth, onMonthChange }: MonthNavigatorProps) => { const currentMonth = dayjs(visibleMonth).toDate(); const handlePrevMonth = () => { onMonthChange(dayjs(visibleMonth).subtract(1, "month").format("YYYY-MM")); }; const handleNextMonth = () => { onMonthChange(dayjs(visibleMonth).add(1, "month").format("YYYY-MM")); }; return (