GPT-5 finding
Next.js App Router searchParams typed as Promise and awaited; Next provides a plain object
lowapi-contracthigh
- apps/web/app/receipts/page.tsx:29-31
- apps/web/app/receipts/page.tsx:33-38
In the App Router, Next.js supplies searchParams as a plain object, not a Promise. Awaiting a non-promise works in JS (it yields the value), but the typing and comment misstate the platform contract and can confuse maintainers or cause friction if stricter typings are adopted.
Recommendation
Change the prop type to searchParams: SearchParams and remove the unnecessary await. Update the comment to reflect that searchParams is a plain object.