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

import { ProfileSettingsContent } from './profile-settings-content';

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

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

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

/**
 * Profile settings page - Server Component
 */
export default function ProfileSettingsPage({ params: { locale } }: ProfilePageProps) {
  return <ProfileSettingsContent locale={locale} />;
}
