import { jsx as _jsx } from "react/jsx-runtime";
import React from "react";
import { ToolExecution } from "../components/ToolExecution.js";
import { ToolGroupExecution } from "../components/ToolGroupExecution.js";
import { ServerToolExecution } from "../components/ServerToolExecution.js";
import { SubAgentPanel } from "../components/SubAgentPanel.js";
export function ToolStartRow({ item }) {
    return (_jsx(ToolExecution, { status: "running", name: item.name, args: item.args, progressOutput: item.progressOutput, animateUntil: item.animateUntil }, item.id));
}
export function ToolDoneRow({ item }) {
    return (_jsx(ToolExecution, { status: "done", name: item.name, args: item.args, result: item.result, isError: item.isError, details: item.details }, item.id));
}
export function ToolGroupRow({ item }) {
    return _jsx(ToolGroupExecution, { tools: item.tools }, item.id);
}
export function ServerToolStartRow({ item }) {
    return (_jsx(ServerToolExecution, { status: "running", name: item.name, input: item.input, startedAt: item.startedAt, animateUntil: item.animateUntil }, item.id));
}
export function ServerToolDoneRow({ item }) {
    return (_jsx(ServerToolExecution, { status: "done", name: item.name, input: item.input, durationMs: item.durationMs, resultType: item.resultType }, item.id));
}
export function SubAgentGroupRow({ item }) {
    return _jsx(SubAgentPanel, { agents: item.agents, aborted: item.aborted }, item.id);
}
//# sourceMappingURL=ToolRows.js.map