"use client";

import { Suspense } from "react";
import { AppShell } from "@/components/AppShell";
import { PolicyCaptura } from "@/components/PolicyCaptura";

/**
 * Manual mode of the policy intake screen. Shares the tab wrapper with
 * `/polizas/captura` (OCR mode) so staff can swap between the two without
 * losing their place. Customer picker comes from the `?customerId=`
 * / `?customerName=` query string — used by `/clientes/[id]` when staff
 * creates a policy from a customer detail page.
 */
export default function NuevaPolizaPage() {
  return (
    <AppShell>
      <Suspense fallback={null}>
        <PolicyCaptura initialMode="manual" />
      </Suspense>
    </AppShell>
  );
}
