"use client"; // Diff modal for the mission Refine flow. Shows the original // description (raw) side-by-side with the LLM-refined version // (rendered as Markdown). Accept / Cancel / Restore-original. import { MarkdownBlock } from "./MarkdownBlock"; const mono = "ui-monospace, SFMono-Regular, SF Mono, Menlo, Monaco, Consolas, monospace"; export function RefineDiffModal({ original, refined, busy, onAccept, onCancel, onUndoAfterAccept, }: { original: string; refined: string; busy: boolean; onAccept: () => void; onCancel: () => void; onUndoAfterAccept: () => void; }) { return (
e.stopPropagation()} style={{ width: "min(1100px, 100%)", height: "min(720px, calc(100vh - 48px))", background: "#141419", borderRadius: 12, border: "1px solid rgba(255,255,255,.08)", display: "flex", flexDirection: "column", }} >
Refine — review before/after
); } function DiffPane({ title, color, body, renderAsMarkdown, }: { title: string; color: string; body: string; renderAsMarkdown: boolean; }) { return (
{title}
{renderAsMarkdown ? ( ) : (
            {body}
          
)}
); }