mirror of
https://github.com/block/buzz.git
synced 2026-11-01 23:11:58 +00:00
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>
46 lines
1.2 KiB
TypeScript
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>
|
|
);
|
|
}
|