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

import { S3PlanOverview } from '@/components/lean/s3';

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

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

  return {
    title: t('s3Planning'),
    description: 'Uebersicht aller 3S-Plaene nach Abteilung',
  };
}

/**
 * S3 Planning Overview Page - Server Component
 * Displays all department 3S plans with filtering and statistics
 */
export default function S3PlanningPage({ params: { locale } }: S3PlanningPageProps) {
  return <S3PlanOverview locale={locale} />;
}
