import PropertyTable from "../components/PropertyTable";

export const revalidate = 60;

export default async function Page(props: {
  params: Promise<{ slug: string }>;
  searchParams: Promise<{
    [key: string]: string | string[] | undefined | number;
  }>;
}) {
  const params = await props.params;
  const portfolioId = params.slug;

  // UPRN matching is now confirmed during bulk-upload onboarding (ADR-0057), so
  // properties arrive already matched — the portfolio-level "Unmatched" tab is
  // retired. The tab components (PortfolioTabs / UnmatchedProperties /
  // getUnmatchedProperties) are left in place for now, pending a follow-up that
  // reconciles legacy no-UPRN properties onboarded before this feature.
  return <PropertyTable portfolioId={portfolioId} />;
}
