import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
import { Mic, MicOff, Send, Square } from "lucide-react";
import { Button } from "../../../../components/ui/button";
export function AgentPromptActionButtons({ isVoiceDisabled, isListening, isExecuting, sendDisabled, sendTitle, onVoicePointerDown, onVoicePointerUp, onVoicePointerCancel, onSubmit, onStop, }) {
    return (_jsxs("div", { className: "flex items-center gap-1 self-end", children: [_jsx("span", { title: isVoiceDisabled
                    ? "Your browser does not support Speech Recognition"
                    : isListening
                        ? "Stop voice input"
                        : "Click to toggle, hold to record", children: _jsx(Button, { onPointerDown: isVoiceDisabled ? undefined : onVoicePointerDown, onPointerUp: isVoiceDisabled ? undefined : onVoicePointerUp, onPointerCancel: isVoiceDisabled ? undefined : onVoicePointerCancel, onContextMenu: (event) => event.preventDefault(), disabled: isVoiceDisabled, size: "sm", className: `h-5.5 w-5.5 touch-none rounded-full select-none ${isVoiceDisabled
                        ? "pointer-events-none cursor-not-allowed opacity-40"
                        : "cursor-pointer"}`, "aria-label": isVoiceDisabled
                        ? "Your browser does not support Speech Recognition"
                        : isListening
                            ? "Stop voice input"
                            : "Start voice input", "aria-pressed": isListening, "aria-disabled": isVoiceDisabled, children: isListening ? (_jsx(MicOff, { className: "size-3", strokeWidth: 1 })) : (_jsx(Mic, { className: "size-3", strokeWidth: 1 })) }) }), _jsx(Button, { onClick: isExecuting ? onStop : onSubmit, disabled: sendDisabled, size: "sm", className: "h-5.5 w-5.5 cursor-pointer rounded-full", title: sendTitle, "aria-label": isExecuting ? "Stop" : "Send", "data-testid": "agent-send-stop-button", "data-executing": isExecuting ? "true" : "false", children: isExecuting ? (_jsx(Square, { className: "size-3", strokeWidth: 1 })) : (_jsx(Send, { className: "size-3", strokeWidth: 1 })) })] }));
}
//# sourceMappingURL=AgentPromptActionButtons.js.map