import { useMemo } from "react";
export function useAgentPromptComposerProps(input) {
    const { activePlaceholderInput, prompt, hideBottomControls, effectiveIsFocused, readOnly, inputPlaceholder, isSubmitting, placeholderInputRef, promptPlaceholderInputRef, textareaRef, shouldMaintainFocusRef, setAllPlaceholdersFilled, handleActivePlaceholderComplete, handleActivePlaceholderCancel, handlePromptPlaceholderComplete, handlePromptPlaceholderCancel, handlePromptInputChange, handleKeyPress, handlePaste, } = input;
    return useMemo(() => ({
        activePlaceholderInput,
        prompt,
        hideBottomControls,
        effectiveIsFocused,
        readOnly,
        inputPlaceholder,
        isSubmitting,
        placeholderInputRef,
        promptPlaceholderInputRef,
        textareaRef,
        onFilledChange: setAllPlaceholdersFilled,
        onActivePlaceholderComplete: handleActivePlaceholderComplete,
        onActivePlaceholderCancel: handleActivePlaceholderCancel,
        onPromptPlaceholderComplete: handlePromptPlaceholderComplete,
        onPromptPlaceholderCancel: handlePromptPlaceholderCancel,
        onPromptChange: handlePromptInputChange,
        onKeyDown: handleKeyPress,
        onPaste: handlePaste,
        onFocus: () => {
            shouldMaintainFocusRef.current = true;
        },
        onBlur: () => {
            shouldMaintainFocusRef.current = false;
        },
    }), [
        activePlaceholderInput,
        effectiveIsFocused,
        handleActivePlaceholderCancel,
        handleActivePlaceholderComplete,
        handleKeyPress,
        handlePaste,
        handlePromptInputChange,
        handlePromptPlaceholderCancel,
        handlePromptPlaceholderComplete,
        hideBottomControls,
        inputPlaceholder,
        isSubmitting,
        placeholderInputRef,
        prompt,
        promptPlaceholderInputRef,
        readOnly,
        setAllPlaceholdersFilled,
        shouldMaintainFocusRef,
        textareaRef,
    ]);
}
//# sourceMappingURL=useAgentPromptComposerProps.js.map