import { jsx as _jsx } from "react/jsx-runtime";
import { Box, Text } from "ink";
import { truncateCells } from "./design/textLayout.js";
export function PromptNoticePanel(props) {
    return (_jsx(Box, { paddingX: 1, width: props.width, children: _jsx(Text, { color: "yellow", children: truncateCells(promptNoticeText(props.kind), Math.max(16, props.width - 2)) }) }));
}
export function promptNoticeText(kind) {
    if (kind === "clear-pending") {
        return "Press Esc again to clear the current input.";
    }
    return "";
}
