import { jsx as _jsx } from "react/jsx-runtime";
import { TextInput } from "../TextInput.js";
import { normalizePromptInputMode } from "./inputModes.js";
export function PromptInput(props) {
    const mode = normalizePromptInputMode(props.mode);
    return (_jsx(TextInput, { value: props.value, cursor: props.cursor, width: props.width, showCursor: props.focused ?? true, placeholder: props.placeholder ?? (mode === "prompt" ? "Type a message" : `${mode} command`) }));
}
