import { redirect } from 'next/navigation';

/**
 * 2026-05-21: /admin/invitations was merged into /admin/users (Users +
 * Invitations tabs on a single page). This stub keeps old bookmarks +
 * external links working by redirecting to the canonical destination.
 */
export default async function InvitationsRedirectPage({
  params,
}: {
  params: Promise<{ portSlug: string }>;
}) {
  const { portSlug } = await params;
  redirect(`/${portSlug}/admin/users`);
}
