Files
buzz/desktop/src/features/projects/ui/ProjectHomeColumn.tsx
Thomas Petersen d5c6df5b81 feat(projects): finish multi-repository workspace flows
Complete project-home defaults, category-specific creation, responsive grouping, and project-wide task and commit views across every repository.

Signed-off-by: Thomas Petersen <thomasp@squareup.com>
Co-authored-by: Thomas Petersen <thomasp@squareup.com>
2026-08-23 23:44:42 -04:00

46 lines
1.2 KiB
TypeScript

import type * as React from "react";
import { RightAuxiliaryPane } from "@/features/channels/ui/RightAuxiliaryPane";
import { AuxiliaryPanelBody } from "@/shared/layout/AuxiliaryPanel";
import { cn } from "@/shared/lib/cn";
export function ProjectHomeColumn({
bodyClassName,
canResetWidth,
children,
onResetWidth,
onResizeStart,
testId,
widthPx,
}: {
bodyClassName?: string;
canResetWidth: boolean;
children: React.ReactNode;
onResetWidth: () => void;
onResizeStart: (event: React.PointerEvent<HTMLButtonElement>) => void;
testId: string;
widthPx: number;
}) {
return (
<RightAuxiliaryPane
canResetWidth={canResetWidth}
className="bg-sidebar text-sidebar-foreground"
constrainToAvailableSpace={false}
detached
onResetWidth={onResetWidth}
onResizeStart={onResizeStart}
testId={testId}
widthPx={widthPx}
>
<div className="relative z-30 flex h-full min-h-0 flex-1 flex-col overflow-hidden bg-sidebar">
<AuxiliaryPanelBody
className={cn("min-h-0 flex-1 overflow-hidden", bodyClassName)}
mode="panel"
>
{children}
</AuxiliaryPanelBody>
</div>
</RightAuxiliaryPane>
);
}