File size: 399 Bytes
5ca6cf1 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | import type { ReactNode } from "react";
interface ChatLayoutProps {
sidebar: ReactNode;
children: ReactNode;
}
export default function ChatLayout({ sidebar, children }: ChatLayoutProps) {
return (
<div className="flex h-screen bg-neutral-50 overflow-hidden">
{sidebar}
<div className="flex-1 flex flex-col min-w-0 relative">
{children}
</div>
</div>
);
}
|