import { jsx as _jsx } from "react/jsx-runtime";
import { Text } from "ink";
import { truncatePromptForFooter } from "./utils.js";
export function shimmeredInputText(value, working, width = 80) {
    const text = truncatePromptForFooter(value, width);
    return working ? `${text}...` : text;
}
export function ShimmeredInput(props) {
    return _jsx(Text, { color: props.working ? "cyan" : undefined, children: shimmeredInputText(props.value, props.working, props.width) });
}
