import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
import { block } from "../../../utils/cn.js";
import { PromptInputBody } from "../../molecules/PromptInputBody/index.js";
import { PromptInputFooter } from "../../molecules/PromptInputFooter/index.js";
const b = block('prompt-input');
/**
 * PromptInputSimple component - simple view with just body and footer
 *
 * @param props - Component props
 * @returns React component
 */
export function PromptInputSimple(props) {
    const { hookState, bodyProps = {}, footerProps = {}, className, qa } = props;
    const { placeholder = 'Plan, code, build and test anything', minRows = 1, maxRows = 15, autoFocus = false, qa: bodyQa, } = bodyProps;
    const { bottomContent, showAttachment = false, onAttachmentClick, attachmentContent, showMicrophone = false, onMicrophoneClick, submitButtonTooltipSend, submitButtonTooltipCancel, submitButtonCancelableText, submitButtonQa, qa: footerQa, } = footerProps;
    const { value, submitButtonState, handleChange, handleKeyDown, handleSubmit } = hookState;
    return (_jsx("div", { className: b({ view: 'simple' }, className), "data-qa": qa, children: _jsxs("div", { className: b('content'), children: [_jsx(PromptInputBody, { value: value, placeholder: placeholder, minRows: minRows, maxRows: maxRows, autoFocus: autoFocus, onChange: handleChange, onKeyDown: handleKeyDown, qa: bodyQa }), _jsx(PromptInputFooter, { qa: footerQa, submitButton: {
                        onClick: handleSubmit,
                        state: submitButtonState,
                        tooltipSend: submitButtonTooltipSend,
                        tooltipCancel: submitButtonTooltipCancel,
                        cancelableText: submitButtonCancelableText,
                        qa: submitButtonQa || 'submit-button-simple',
                    }, showAttachment: showAttachment, onAttachmentClick: onAttachmentClick, attachmentContent: attachmentContent, showMicrophone: showMicrophone, onMicrophoneClick: onMicrophoneClick, buttonSize: "l", children: bottomContent })] }) }));
}
//# sourceMappingURL=PromptInputSimple.js.map
