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

import { AdminDashboardContent } from './admin-dashboard-content';

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

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

/**
 * Admin dashboard page - Server Component
 */
export default function AdminPage() {
  return <AdminDashboardContent />;
}
