"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.PromptInputSimple = PromptInputSimple;
const jsx_runtime_1 = require("react/jsx-runtime");
const cn_1 = require("../../../utils/cn.js");
const PromptInputBody_1 = require("../../molecules/PromptInputBody/index.js");
const PromptInputFooter_1 = require("../../molecules/PromptInputFooter/index.js");
const b = (0, cn_1.block)('prompt-input');
/**
 * PromptInputSimple component - simple view with just body and footer
 *
 * @param props - Component props
 * @returns React component
 */
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 ((0, jsx_runtime_1.jsx)("div", { className: b({ view: 'simple' }, className), "data-qa": qa, children: (0, jsx_runtime_1.jsxs)("div", { className: b('content'), children: [(0, jsx_runtime_1.jsx)(PromptInputBody_1.PromptInputBody, { value: value, placeholder: placeholder, minRows: minRows, maxRows: maxRows, autoFocus: autoFocus, onChange: handleChange, onKeyDown: handleKeyDown, qa: bodyQa }), (0, jsx_runtime_1.jsx)(PromptInputFooter_1.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
