mirror of
https://github.com/hanzoai/next.js.git
synced 2026-10-30 14:46:38 +00:00
In a pathname for an intercepting route, a dynamic path param might occur multiple types, e.g. `'/[locale]/example/(...)[locale]/intercepted'` (for `[locale]/example/@modal/(...)[locale]/intercepted/page.tsx`). We need to make sure that each occurence is replaced with the actual value during interpolation. The handling of such pathnames is already done correctly in the Node.js runtime, but not in the Edge runtime. fixes #70654
17 lines
209 B
TypeScript
17 lines
209 B
TypeScript
import { ReactNode } from 'react'
|
|
|
|
export default function Layout({
|
|
children,
|
|
modal,
|
|
}: {
|
|
children: ReactNode
|
|
modal: ReactNode
|
|
}) {
|
|
return (
|
|
<div>
|
|
{children}
|
|
{modal}
|
|
</div>
|
|
)
|
|
}
|