mirror of
https://github.com/cloudflare/vinext.git
synced 2026-09-14 19:04:59 +08:00
a21667fd09
* fix(app-router): discover nested leaf slot routes * test(routing): align nested leaf slot expectation * test(routing): assert nested leaf route match * fix(app-router): scope nested leaf slot discovery
15 lines
291 B
TypeScript
15 lines
291 B
TypeScript
export default function ParallelLeafDefaultLayout({
|
|
children,
|
|
slot,
|
|
}: {
|
|
children: React.ReactNode;
|
|
slot: React.ReactNode;
|
|
}) {
|
|
return (
|
|
<>
|
|
<div data-testid="parallel-leaf-slot">{slot}</div>
|
|
<div data-testid="parallel-leaf-children">{children}</div>
|
|
</>
|
|
);
|
|
}
|