import React from "react"; import LoadingIndicator from "./LoadingIndicator"; export default function ConfirmInline({ data, confirmed, onConfirm }) { const { args, tool } = data || {}; if (confirmed) { // Once confirmed, show "Running..." state in the same container return (
Tool: {tool ?? "Unknown"}
{args && (
Args:
                {JSON.stringify(args, null, 2)}
              
)}
Running {tool}...
); } // Not confirmed yet → show confirmation UI return (
Tool: {tool ?? "Unknown"}
{args && (
Args:
              {JSON.stringify(args, null, 2)}
            
)}
); }