import { Metadata } from 'next';
import { getTranslations } from 'next-intl/server';

import { AbsenceCalendarPageContent } from './absence-calendar-content';

interface AbsenceCalendarPageProps {
  params: { locale: string };
}

export async function generateMetadata(): Promise<Metadata> {
  const t = await getTranslations('hr.absences');

  return {
    title: `${t('teamCalendar')} - HR`,
  };
}

/**
 * Absence calendar page - Server Component
 * Shows team absences in a calendar view
 */
export default function AbsenceCalendarPage({ params: { locale } }: AbsenceCalendarPageProps) {
  return <AbsenceCalendarPageContent locale={locale} />;
}
