import { jsx as _jsx } from "react/jsx-runtime";
import { Text } from "ink";
import { toneColor } from "./design/terminalTheme.js";
const FAST_MARK = ">>";
export function FastIcon(props) {
    const model = fastIconModel(Boolean(props.cooldown));
    return (_jsx(Text, { color: toneColor(model.tone), dimColor: model.cooldown, children: model.mark }));
}
export function fastIconModel(cooldown = false) {
    return {
        mark: FAST_MARK,
        tone: cooldown ? "muted" : "success",
        label: cooldown ? "fast mode cooling down" : "fast model",
        cooldown,
    };
}
export function getFastIconString(cooldown = false) {
    return cooldown ? `${FAST_MARK} cooldown` : FAST_MARK;
}
export function isFastModel(model) {
    return /\b(flash|fast|lite)\b/i.test(model);
}
