import { CustomerPageShell } from "@/app/customer/_components/customer-page-shell";
import { AssetAllocationReportView } from "./_components/asset-allocation-report/asset-allocation-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 AssetAllocationReportPage({ params }: PageProps) {
  const { tenant } = await params;
  return (
    <CustomerPageShell>
      <ReportPageGuard tenant={tenant} routeKeys={CUSTOMER_ROUTE_KEYS.assetAllocation} label="Asset Allocation Report">
        <AssetAllocationReportView />
      </ReportPageGuard>
    </CustomerPageShell>
  );
}
