This repository has been archived on 2026-06-07. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
master-ai/vibn-frontend/app/[workspace]/layout.tsx

22 lines
644 B
TypeScript

"use client";
import { useParams } from "next/navigation";
import { ChatPanel } from "@/components/vibn-chat/chat-panel";
/**
* Workspace-level layout.
*
* Mounts the slide-out ChatPanel as a fixed-position overlay on every
* route in this workspace EXCEPT when the user is inside a specific
* project. Project pages under `(home)` render their own structural
* ChatPanel with an artifact slot (see `(home)/layout.tsx`); doubling up
* would mean two chat panels on screen at once.
*/
export default function WorkspaceLayout({
children,
}: {
children: React.ReactNode;
}) {
return <div id="workspace-content">{children}</div>;
}