Files
mrp-qrcode/app/login/operator/page.tsx
T

23 lines
673 B
TypeScript
Raw Normal View History

2026-04-21 09:29:44 -05:00
import { Suspense } from "react";
import OperatorLoginClient from "./OperatorLoginClient";
/**
* Server-component shell that wraps the client login form in a Suspense
* boundary. The client uses useSearchParams() to read ?next=<path>; Next.js
* requires that to live inside Suspense so the CSR bailout doesn't fail the
* prerender during `next build`.
*/
2026-04-20 15:49:01 -05:00
export default function OperatorLoginPage() {
return (
2026-04-21 09:29:44 -05:00
<Suspense
fallback={
<main className="min-h-dvh flex items-center justify-center p-6 bg-slate-50">
<p className="text-slate-500">Loading</p>
</main>
}
>
<OperatorLoginClient />
</Suspense>
2026-04-20 15:49:01 -05:00
);
}