mirror of
https://github.com/hanzoai/next.js.git
synced 2026-09-24 17:00:51 +00:00
18 lines
367 B
TypeScript
18 lines
367 B
TypeScript
import type { PropsWithChildren } from 'react';
|
|
|
|
|
|
export default async function Page(
|
|
props: PropsWithChildren<{
|
|
params: Promise<{
|
|
projectId: string;
|
|
collectionId: string;
|
|
}>;
|
|
}>
|
|
) {
|
|
callback(() => {
|
|
foo({
|
|
projectId: /* @next-codemod-error 'props.params' is accessed without awaiting.*/
|
|
props.params.projectId,
|
|
});
|
|
})
|
|
} |