import { redirect } from 'next/navigation';

interface PageProps {
  params: Promise<{ portSlug: string }>;
}

/**
 * Legacy route. Notification preferences now live on the user-settings
 * page alongside every other personal preference. Kept as a redirect so
 * older bookmarks / email links still land somewhere useful.
 */
export default async function NotificationPreferencesRedirect({ params }: PageProps) {
  const { portSlug } = await params;
  redirect(`/${portSlug}/settings#notifications`);
}
