import React from 'react'; import { Edit3, X, Check } from 'lucide-react'; function DiffRow({ label, original, modified }) { const changed = JSON.stringify(original) !== JSON.stringify(modified); return (
{original == null ? '(none)' : (typeof original === 'object' ? JSON.stringify(original, null, 2) : String(original))}
{modified == null ? '(none)' : (typeof modified === 'object' ? JSON.stringify(modified, null, 2) : String(modified))}
The AI proposed the following changes. Review the diff below before executing.
{['body', 'query_params', 'headers', 'path_params'].map(key => (changes[key] !== undefined || original[key]) ? (