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

import { SkillMatrixOverviewContent } from './skill-matrix-overview-content';

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

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

  return {
    title: `${t('skillMatrix')} - LEAN`,
  };
}

/**
 * Skill Matrix overview page - Server Component
 * Shows list of departments with skill matrix access
 */
export default function SkillMatrixPage({ params: { locale } }: SkillMatrixPageProps) {
  return <SkillMatrixOverviewContent locale={locale} />;
}
