import { CustomReportBuilder } from '@/components/reports/custom/custom-report-builder';

export const dynamic = 'force-dynamic';

/**
 * Custom (ad-hoc) report builder. Sibling of the dynamic [kind] route
 * so this page wins over the placeholder for /reports/custom.
 *
 * v1 ships 4 entities: clients / interests / berths / tenancies.
 * Additional entities (companies, yachts, invoices, payments, deals,
 * sends) layer in via `src/lib/reports/custom/registry.ts` without
 * touching this page.
 */
export default async function CustomReportPage({
  params,
}: {
  params: Promise<{ portSlug: string }>;
}) {
  const { portSlug } = await params;
  return <CustomReportBuilder portSlug={portSlug} />;
}
