Publish Claude Code Binaries / Stage and publish binaries (push) Canceled after 0s
Publish Tutti App Runtime / Build darwin-arm64 (push) Canceled after 0s
Publish Tutti App Runtime / Build darwin-amd64 (push) Canceled after 0s
Publish Tutti App Runtime / Build linux-amd64 (push) Canceled after 0s
Publish Tutti App Runtime / Build windows-amd64 (push) Canceled after 0s
Sync Tutti Agent Skills / sync (push) Canceled after 0s
Windows Agent Adapters / Test Windows agent adapters (push) Canceled after 0s
Windows Daemon Adapters / Test Windows daemon adapters (push) Canceled after 0s
Publish Tutti App Runtime / Publish runtime catalog (push) Canceled after 0s
38 lines
1.0 KiB
TypeScript
38 lines
1.0 KiB
TypeScript
import type { HTMLAttributes, JSX, ReactNode } from "react";
|
|
import { CustomScrollArea } from "../../../../app/renderer/components/ui/custom-scroll-area";
|
|
import { cn } from "../../../../app/renderer/lib/utils";
|
|
|
|
interface AgentToolScrollAreaProps extends HTMLAttributes<HTMLDivElement> {
|
|
children: ReactNode;
|
|
viewportClassName?: string;
|
|
maxHeightClassName?: string;
|
|
}
|
|
|
|
export function AgentToolScrollArea({
|
|
children,
|
|
className,
|
|
viewportClassName,
|
|
maxHeightClassName = "max-h-[240px]",
|
|
...props
|
|
}: AgentToolScrollAreaProps): JSX.Element {
|
|
"use memo";
|
|
return (
|
|
<CustomScrollArea
|
|
className={cn(
|
|
"agent-tool-scroll-area group/agent-tool-scroll",
|
|
className
|
|
)}
|
|
viewportClassName={cn(
|
|
"workspace-agents-status-panel__detail-scroll-region",
|
|
maxHeightClassName,
|
|
viewportClassName
|
|
)}
|
|
scrollbarClassName="agent-tool-scroll-area__scrollbar"
|
|
scrollbarThumbClassName="workspace-agents-status-panel__scrollbar-thumb"
|
|
{...props}
|
|
>
|
|
{children}
|
|
</CustomScrollArea>
|
|
);
|
|
}
|