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

import { AbsencesContent } from './absences-content';

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

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

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

/**
 * Absences overview page - Server Component
 * Shows vacation balance and absence requests
 */
export default function AbsencesPage({ params: { locale } }: AbsencesPageProps) {
  return <AbsencesContent locale={locale} />;
}
