mirror of
https://github.com/hanzoai/next.js.git
synced 2026-10-30 14:46:38 +00:00
### What? Parallel routes and groups were not allowed after a catch-all segment on the turbopack side previously. Closes PACK-2975 Fixes #64600
18 lines
260 B
TypeScript
18 lines
260 B
TypeScript
import { ReactNode } from 'react'
|
|
|
|
export default function Layout({
|
|
children,
|
|
slot,
|
|
}: {
|
|
children: ReactNode
|
|
slot: ReactNode
|
|
}) {
|
|
return (
|
|
<div id="catch-all-layout">
|
|
<h2>Catch-all Layout</h2>
|
|
{slot}
|
|
{children}
|
|
</div>
|
|
)
|
|
}
|