import React from "react"; 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 (
Agent is ready to run the tool: {tool ?? "Unknown"}
{args && (
With the following parameters
              {JSON.stringify(args, null, 2)}
            
)}
Please confirm to proceed.
); }