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

import { SettingsContent } from './settings-content';

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

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

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

/**
 * Settings page - Server Component
 * Entry point for user settings
 */
export default function SettingsPage({ params: { locale } }: SettingsPageProps) {
  return <SettingsContent locale={locale} />;
}
