mirror of
https://github.com/hanzoai/next.js.git
synced 2026-10-30 14:46:38 +00:00
23 lines
485 B
TypeScript
23 lines
485 B
TypeScript
import Link from 'next/link'
|
|
|
|
export default async function Layout(props) {
|
|
const params = await props.params
|
|
|
|
const { children, modal } = props
|
|
|
|
return (
|
|
<>
|
|
<div>
|
|
<Link href="/feed">feed</Link>
|
|
</div>
|
|
<div>
|
|
Photos: <Link href="/photos/1">Photo 1</Link>{' '}
|
|
<Link href="/photos/2">Photo 2</Link>
|
|
</div>
|
|
<div>{params.lang}</div>
|
|
<div id="children">{children}</div>
|
|
<div id="modal">{modal}</div>
|
|
</>
|
|
)
|
|
}
|