import { redirect } from 'next/navigation';

/**
 * /<port>/residential is a namespace segment - the actual landing is
 * /residential/clients. Without a page.tsx here, the breadcrumb's
 * "Residential" link 404s. Server-redirect to the Clients sub-page so
 * the link works as a useful shortcut.
 */
export default async function ResidentialIndexPage({
  params,
}: {
  params: Promise<{ portSlug: string }>;
}) {
  const { portSlug } = await params;
  redirect(`/${portSlug}/residential/clients`);
}
