import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
import { ChevronDown } from "lucide-react";
import { memo } from "react";
import { ToolCall } from "./ToolCallPrimitives";
/**
 * Batteries-included default tool card — the chevron-header composition of the
 * compound {@link ToolCall} parts. Status comes from the data, the collapsible
 * is aria-correct, and it's memoized. Used by `<ToolCallEntry>` for flat
 * (non-timeline) threads, sidebars, debug panels, etc.
 *
 * @category Components
 */
export const DefaultToolCard = memo(function DefaultToolCard({ activity, isLast, isRunning = true, }) {
    return (_jsxs(ToolCall.Root, { activity: activity, isLast: isLast, running: isRunning, defaultOpen: activity.isError, className: "openui-tool-call--card", children: [_jsxs(ToolCall.Trigger, { className: "openui-tool-call__header", children: [_jsx(ToolCall.StatusIcon, {}), _jsx(ToolCall.StatusText, {}), _jsx(ChevronDown, { size: 14, className: "openui-tool-call__chevron" })] }), _jsxs(ToolCall.Content, { className: "openui-tool-call__panel", children: [_jsx(ToolCall.Parameters, { className: "openui-tool-call__request openui-tool-code-block__code" }), _jsx(ToolCall.Result, { className: "openui-tool-call__response openui-tool-code-block__code" })] })] }));
});
//# sourceMappingURL=DefaultToolCard.js.map