ema-frontend-demo / src /components /chat /ChatLayout.tsx
ishaq101's picture
[KM-422] [EMA][FE] Interface prototype for External Demo
1ed65e9
raw
history blame contribute delete
543 Bytes
"use client";
import { useState } from "react";
import { Sidebar } from "./Sidebar";
export function ChatLayout({ children }: { children: React.ReactNode }) {
const [sidebarCollapsed, setSidebarCollapsed] = useState(false);
return (
<div className="flex h-screen bg-neutral-50 overflow-hidden">
<Sidebar
collapsed={sidebarCollapsed}
onToggle={() => setSidebarCollapsed((prev) => !prev)}
/>
<main className="flex-1 flex flex-col min-w-0 relative">
{children}
</main>
</div>
);
}