import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
import { Box, Text } from "ink";
import { cacheRate } from "../query/promptCache.js";
export function CostPanel(props) {
    return (_jsxs(Box, { flexDirection: "column", children: [_jsx(Text, { children: `input ${props.totals.inputTokens}` }), _jsx(Text, { children: `output ${props.totals.outputTokens}` }), _jsx(Text, { children: `cache ${cacheRate(props.totals.cacheHitTokens, props.totals.cacheMissTokens)}` })] }));
}
