mirror of
https://github.com/hanzoai/next.js.git
synced 2026-10-30 14:46:38 +00:00
Enables AI agents to programmatically access the runtime metadata of the current page. At the moment, we only include the segment trie details, but this endpoint will be open to extension. Like `get_errors`, we support collecting information from multiple tabs.
20 lines
412 B
TypeScript
20 lines
412 B
TypeScript
export default function ParallelLayout({
|
|
children,
|
|
sidebar,
|
|
content,
|
|
}: {
|
|
children: React.ReactNode
|
|
sidebar: React.ReactNode
|
|
content: React.ReactNode
|
|
}) {
|
|
return (
|
|
<div style={{ display: 'flex' }}>
|
|
<div style={{ flex: '0 0 200px', borderRight: '1px solid #ccc' }}>
|
|
{sidebar}
|
|
</div>
|
|
<div style={{ flex: 1 }}>{content}</div>
|
|
<div>{children}</div>
|
|
</div>
|
|
)
|
|
}
|