import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
import React from "react";
import { Box } from "ink";
import { ChatInputFooterStack } from "./ChatLayout.js";
import { ChatStatusRow } from "./ChatStatusRow.js";
import { LiveToolPanel } from "./LiveToolPanel.js";
export function ChatInputStack({ columns, theme, statusSlotVisible, activityVisible, stallStatusVisible, liveToolFeed, doneStatus, activityPhase, elapsedMs, runStartRef, thinkingMs, isThinking, thinkingLevel, tokenEstimate, charCountRef, realTokensAccumRef, lastUserMessage, activeToolNames, retryInfo, planDone, planTotal, renderMarkdown, formatDuration, }) {
    return (_jsxs(ChatInputFooterStack, { columns: columns, children: [_jsx(Box, { borderStyle: "single", borderTop: true, borderBottom: false, borderLeft: false, borderRight: false, borderColor: theme.textDim, width: columns, height: 0 }), activityVisible && liveToolFeed.length > 0 && (_jsxs(_Fragment, { children: [_jsx(LiveToolPanel, { entries: liveToolFeed, columns: columns }), _jsx(Box, { borderStyle: "single", borderTop: true, borderBottom: false, borderLeft: false, borderRight: false, borderColor: theme.textDim, width: columns, height: 0 })] })), _jsx(ChatStatusRow, { visible: statusSlotVisible, activityVisible: activityVisible, stallStatusVisible: stallStatusVisible, doneStatus: doneStatus, columns: columns, theme: theme, activityPhase: activityPhase, elapsedMs: elapsedMs, runStartRef: runStartRef, thinkingMs: thinkingMs, isThinking: isThinking, thinkingLevel: thinkingLevel, tokenEstimate: tokenEstimate, charCountRef: charCountRef, realTokensAccumRef: realTokensAccumRef, userMessage: lastUserMessage, activeToolNames: activeToolNames, retryInfo: retryInfo, planDone: planDone, planTotal: planTotal, renderMarkdown: renderMarkdown, formatDuration: formatDuration })] }));
}
//# sourceMappingURL=ChatInputStack.js.map