mirror of
https://github.com/hanzoai/next.js.git
synced 2026-10-30 14:46:38 +00:00
25 lines
395 B
TypeScript
25 lines
395 B
TypeScript
export default async function Page(
|
|
props: {
|
|
params: Promise<{ slug: string }>
|
|
searchParams: Promise<any>
|
|
}
|
|
): Promise<JSX.Element> {
|
|
const searchParams = await props.searchParams;
|
|
|
|
const {
|
|
search
|
|
} = searchParams;
|
|
|
|
const params = await props.params;
|
|
|
|
const {
|
|
slug
|
|
} = params;
|
|
|
|
// Access to the destructed properties
|
|
slug
|
|
search
|
|
|
|
return <div>Page</div>
|
|
}
|