import type { ReactNode } from "react"; import { ActivityAside } from "@/components/ActivityAside"; import { Footer } from "@/components/Footer"; /** * Centre + right panel of the console (PEP-38). The page decides what the right panel shows; * without `aside` it gets the default activity panel, `aside={null}` hides it. * Below xl the panel goes under the page content, the footer is always last. */ export function Workspace({ children, aside }: { children: ReactNode; aside?: ReactNode }) { const panel = aside === undefined ? : aside; return (
{children}
{panel && ( )}
); }