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

import { NotificationsSettingsContent } from './notifications-settings-content';

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

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

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

/**
 * Notifications settings page - Server Component
 */
export default function NotificationsSettingsPage({ params: { locale } }: NotificationsPageProps) {
  return <NotificationsSettingsContent locale={locale} />;
}
