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

type PageProps = { params: Promise<{ tenant: string }> };

export default async function OverallSummaryReportPage({ params }: PageProps) {
  const { tenant } = await params;
  return (
    <CustomerPageShell>
      <ReportPageGuard tenant={tenant} routeKeys={CUSTOMER_ROUTE_KEYS.overallSummary} label="Overall Summary">
        <OverallSummaryView />
      </ReportPageGuard>
    </CustomerPageShell>
  );
}
