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

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

interface DepartmentPlanPageProps {
  params: { locale: string; departmentId: string };
}

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

  return {
    title: `${t('s3Planning')} - Abteilung`,
    description: '3S-Plan fuer eine spezifische Abteilung mit Wochenansicht',
  };
}

/**
 * Department S3 Plan Page - Server Component
 * Displays the 3S plan for a specific department with weekly status grid
 */
export default function DepartmentPlanPage({
  params: { locale, departmentId },
}: DepartmentPlanPageProps) {
  return <S3DepartmentView departmentId={departmentId} locale={locale} />;
}
