import { FileCode, Minus, Plus } from "lucide-react"; import { cn } from "@/lib/utils"; export type DiffLineType = "add" | "remove" | "context"; export type DiffLine = { type: DiffLineType; content: string }; export interface DiffViewProps { /** Pre-computed diff lines. This renders a diff, it doesn't compute one. */ lines: DiffLine[]; /** Shown in the header, such as a filename. Default "diff". */ label?: string; className?: string; } const LINE_CLASS: Record = { add: "bg-success/10 text-foreground", remove: "bg-destructive/10 text-foreground", context: "text-muted-foreground", }; const MARK: Record = { add: