import { jsx as _jsx } from "react/jsx-runtime";
import { InterruptedByUser } from "./InterruptedByUser.js";
import { MessageResponse } from "./MessageResponse.js";
export function FallbackToolUseRejectedMessage() {
    return (_jsx(MessageResponse, { height: 1, tone: "warning", children: _jsx(InterruptedByUser, {}) }));
}
export function isFallbackToolUseRejectedText(text) {
    return /<tool_use_rejected\b|tool use rejected|user rejected|interrupted by user/i.test(text);
}
