import { redirect } from 'next/navigation';

/**
 * The inquiry inbox is now a top-level, permission-gated page at
 * `/[portSlug]/inquiries` (resource `inquiries`), no longer admin-only.
 * Redirect the legacy admin URL so old bookmarks/links still land.
 */
interface AdminInquiriesRedirectProps {
  params: Promise<{ portSlug: string }>;
}

export default async function AdminInquiriesRedirect({ params }: AdminInquiriesRedirectProps) {
  const { portSlug } = await params;
  redirect(`/${portSlug}/inquiries`);
}
