import type { ReactNode } from "react"; import { ActivityAside } from "@/components/ActivityAside"; import { Footer } from "@/components/Footer"; import { cn } from "@/lib/utils"; import { getT } from "@/lib/i18n"; /** * 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. * `wide` lets the centre grow past the reading width (the board page, with its panel moved into a dialog). * Below xl the panel goes under the page content (`asideWideOnly`: shown on xl only), the footer is always last. */ export async function Workspace({ children, aside, asideWideOnly = false, wide = false }: { children: ReactNode; aside?: ReactNode; asideWideOnly?: boolean; wide?: boolean }) { const t = await getT(); const panel = aside === undefined ? : aside; return (
{children}
{panel && ( )}
); }