'use client'; /** * AnalyticsHeader — Page heading and period selector for the Analítica page. * * Displays the "Analítica" heading plus a dropdown to select the active royalty period. * * Requirements: 8.1, 8.2, 8.3 */ import type { PortalPeriod } from '@/lib/mock-data/types'; import { useTranslation } from '@/lib/hooks/useTranslation'; interface AnalyticsHeaderProps { periods: PortalPeriod[]; selectedPeriodId: string; onPeriodChange: (periodId: string) => void; } export default function AnalyticsHeader({ periods, selectedPeriodId, onPeriodChange, }: AnalyticsHeaderProps) { const t = useTranslation(); return (