"use client";
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
import { cn } from "@stigmer/theme";
/**
 * Summary bar showing aggregate diff statistics.
 *
 * Renders "N files changed, +X additions, -Y deletions" in a compact
 * single-line format. Uses diff-specific design tokens for coloring.
 *
 * Zero Console dependencies — safe for platform builder embedding.
 */
export function DiffSummary({ fileCount, additions, deletions, className, }) {
    const fileLabel = fileCount === 1 ? "1 file changed" : `${fileCount} files changed`;
    return (_jsxs("div", { role: "status", "aria-live": "polite", className: cn("flex items-center gap-2 text-xs text-muted-foreground", className), children: [_jsx("span", { children: fileLabel }), additions > 0 && (_jsxs(_Fragment, { children: [_jsx("span", { "aria-hidden": "true", children: "\u00B7" }), _jsxs("span", { className: "font-mono text-diff-added-fg", children: ["+", additions, " ", additions === 1 ? "addition" : "additions"] })] })), deletions > 0 && (_jsxs(_Fragment, { children: [_jsx("span", { "aria-hidden": "true", children: "\u00B7" }), _jsxs("span", { className: "font-mono text-diff-removed-fg", children: ["-", deletions, " ", deletions === 1 ? "deletion" : "deletions"] })] }))] }));
}
//# sourceMappingURL=DiffSummary.js.map