"use client" import { Button } from "@/app/_components/ui/button" import { FilterX } from "lucide-react" import YearSelector from "./year-selector" import MonthSelector from "./month-selector" import CategorySelector from "./category-selector" import { Skeleton } from "../../ui/skeleton" interface MapSelectorsProps { availableYears: (number | null)[] selectedYear: number setSelectedYear: (year: number) => void selectedMonth: number | "all" setSelectedMonth: (month: number | "all") => void selectedCategory: string | "all" setSelectedCategory: (category: string | "all") => void categories: string[] isYearsLoading?: boolean isCategoryLoading?: boolean className?: string compact?: boolean } export default function MapSelectors({ availableYears, selectedYear, setSelectedYear, selectedMonth, setSelectedMonth, selectedCategory, setSelectedCategory, categories, isYearsLoading = false, isCategoryLoading = false, className = "", compact = false, }: MapSelectorsProps) { const resetFilters = () => { setSelectedYear(2024) setSelectedMonth("all") setSelectedCategory("all") } return (