'use client'; import * as React from 'react'; import { ChevronLeft, ChevronRight, Landmark, CalendarDays, CircleDollarSign, Tag, UserRound, } from 'lucide-react'; import { Label as ReactAriaLabel } from 'react-aria-components'; import { type DateRange } from 'react-day-picker'; import { inputVariants } from '@/components/ui/input'; import * as Label from '@/components/ui/label'; import { Actions, FilterSidebar, } from '@/components/blocks/filter/filter-popover-parts'; import { cn } from '@/utils/cn'; const MONTH_NAMES = [ 'Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec', ]; const FILTER_TYPES = [ { icon: , label: 'Date' }, { icon: , label: 'Customers' }, { icon: , label: 'Amount' }, { icon: , label: 'Categories' }, { icon: , label: 'Accounts' }, ]; type MonthButtonProps = { month: string; monthIndex: number; year: number; onClick: (index: number) => void; className: string; }; type DateSelectorProps = { label: string; selectedDate?: Date; year: number; onYearChange: (increment: number) => void; onMonthClick: (monthIndex: number) => void; getMonthClassName: (year: number, monthIndex: number) => string; }; type DividerProps = { className?: string; }; const MonthButton = ({ month, monthIndex, onClick, className, }: MonthButtonProps) => ( ); const VerticalDivider = ({ className }: DividerProps) => (