import { CustomerPageShell } from "@/app/customer/_components/customer-page-shell";
import { LiquidityReportView } from "./_components/liquidity-report-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 LiquidityReportPage({ params }: PageProps) {
  const { tenant } = await params;
  return (
    <CustomerPageShell>
      <ReportPageGuard tenant={tenant} routeKeys={[
    CUSTOMER_ROUTE_KEYS.liquidityReport,
    CUSTOMER_ROUTE_KEYS.cashReport,
    CUSTOMER_ROUTE_KEYS.cashBalanceReport,
    CUSTOMER_ROUTE_KEYS.cashDetailsReport,
  ]} label="Liquidity Report">
        <LiquidityReportView />
      </ReportPageGuard>
    </CustomerPageShell>
  );
}
