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

import { EmployeeTimeAccountContent } from './employee-time-account-content';

interface EmployeeTimeAccountPageProps {
  params: { locale: string; employeeId: string };
}

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

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

/**
 * Employee time account page - Server Component
 * Shows detailed time tracking for a specific employee
 */
export default function EmployeeTimeAccountPage({
  params: { locale, employeeId },
}: EmployeeTimeAccountPageProps) {
  return <EmployeeTimeAccountContent locale={locale} employeeId={employeeId} />;
}
