'use client';
/** Chat screen layout: RoomsPanel (Hubs & People) beside the conversation card. */
import { ReactNode, useState } from 'react';
import { PanelLeft, X } from 'lucide-react';
import RoomsPanel from '../Sidebar';
export default function ChatShell({ children, landing = false }: { children: ReactNode; landing?: boolean }) {
const [drawer, setDrawer] = useState(false);
return (
{/* desktop rooms */}
{/* mobile: on the landing page show rooms inline; elsewhere a drawer */}
{landing ? (
) : (
<>
{drawer && (
setDrawer(false)} />
setDrawer(false)}>
setDrawer(false)} />
)}
>
)}
{children}
);
}