mirror of
https://github.com/vercel/next.js.git
synced 2026-09-20 02:25:18 +08:00
24 lines
432 B
TypeScript
24 lines
432 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 (
|
|
<html>
|
|
<head></head>
|
|
<body>
|
|
<div>
|
|
<ShowParams prefix="root" params={await params} />
|
|
{children}
|
|
</div>
|
|
</body>
|
|
</html>
|
|
)
|
|
}
|