'use client' import { RefreshCw } from 'lucide-react' import { getMonthName } from '@/lib/utils' import { cn } from '@/lib/utils' interface DashboardHeaderProps { onRefresh?: () => void isRefreshing?: boolean } export function DashboardHeader({ onRefresh, isRefreshing = false, }: DashboardHeaderProps) { const now = new Date() const currentMonth = now.getMonth() + 1 const currentYear = now.getFullYear() const monthName = getMonthName(currentMonth) // Formatear fecha actual const formattedDate = new Intl.DateTimeFormat('es-AR', { weekday: 'long', day: 'numeric', month: 'long', year: 'numeric', }).format(now) return (
{formattedDate}