next.js / packages /next-codemod /transforms /__testfixtures__ /next-async-request-api-dynamic-props /access-props-06.output.tsx
| interface PageProps { | |
| params: Promise<{ | |
| id: string | |
| name: string | |
| }> | |
| } | |
| export default async function Page(props: PageProps) { | |
| const params = await props.params; | |
| const { | |
| id, | |
| name | |
| } = params; | |
| globalThis.f1(id) | |
| globalThis.f2(name) | |
| } | |