import { CustomerPageShell } from "@/app/customer/_components/customer-page-shell"

import { PibReportView } from "./_components/pib-report-view"
import { CUSTOMER_ROUTE_KEYS } from "@/config/customer-route-keys";
import { ReportPageGuard } from "@/app/customer/[tenant]/reports/_shared/components/report-page-guard";

/**
 * PIB Advisory pivot report (live Overall Summary + pib_class buckets).
 */
type PageProps = { params: Promise<{ tenant: string }> };

export default async function PibReportPage({ params }: PageProps) {
  const { tenant } = await params;
  return (
    <CustomerPageShell>
      <ReportPageGuard tenant={tenant} routeKeys={CUSTOMER_ROUTE_KEYS.pibReport} label="PIB Report">
        <PibReportView />
      </ReportPageGuard>
    </CustomerPageShell>
  )
}
