mirror of
https://github.com/vercel/next.js.git
synced 2026-09-20 02:25:18 +08:00
19 lines
347 B
TypeScript
19 lines
347 B
TypeScript
import React from 'react'
|
|
import ShowParams from '../show-params'
|
|
|
|
export default async function Layout(props: {
|
|
children: React.ReactNode
|
|
params: Promise<{}>
|
|
}) {
|
|
const params = await props.params
|
|
|
|
const { children } = props
|
|
|
|
return (
|
|
<div>
|
|
<ShowParams prefix="lvl1" params={await params} />
|
|
{children}
|
|
</div>
|
|
)
|
|
}
|