import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
import { Box, Text } from 'ink';
import Spinner from 'ink-spinner';
import { useTheme } from '../../hooks/useTheme.js';
/**
 * Single terse status line used by the non-interactive shell. Replaces the
 * branch that previously lived inside ChatInput for `run` mode.
 */
export function NonInteractiveStatus({ message, }) {
    const { colors } = useTheme();
    if (message === null) {
        return (_jsx(Box, { marginLeft: -1, marginTop: 1, children: _jsx(Text, { color: colors.secondary, children: "Completed. Exiting." }) }));
    }
    return (_jsx(Box, { marginLeft: -1, marginTop: 1, children: _jsxs(Text, { color: colors.secondary, children: [_jsx(Spinner, { type: "dots" }), " ", message] }) }));
}
//# sourceMappingURL=non-interactive-status.js.map