import { Metadata } from 'next';
import { getTranslations } from 'next-intl/server';
import { HROverviewContent } from './hr-overview-content';

export async function generateMetadata({
  params,
}: {
  params: Promise<{ locale: string }>;
}): Promise<Metadata> {
  const { locale } = await params;
  const t = await getTranslations({ locale, namespace: 'hr' });

  return {
    title: t('title'),
    description: t('description'),
  };
}

export default async function HRPage({
  params,
}: {
  params: Promise<{ locale: string }>;
}) {
  const { locale } = await params;
  return <HROverviewContent locale={locale} />;
}
