import { jsx as _jsx } from "react/jsx-runtime";
import { Box, Text } from "ink";
export function MessageModel(props) {
    const label = formatMessageModel(props.model, props.streaming);
    if (!label)
        return null;
    return (_jsx(Box, { children: _jsx(Text, { color: "gray", children: label }) }));
}
export function formatMessageModel(model, streaming = false) {
    const normalized = model?.trim();
    if (!normalized)
        return streaming ? "streaming" : null;
    return streaming ? `${normalized} streaming` : normalized;
}
