mirror of
https://github.com/hanzoai/next.js.git
synced 2026-09-24 17:00:51 +00:00
19 lines
261 B
TypeScript
19 lines
261 B
TypeScript
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)
|
|
}
|