"use client";
import { jsx as _jsx } from "react/jsx-runtime";
import { cn } from "@stigmer/theme";
const MESSAGE = {
    "empty-create": "New empty file",
    create: "New file — preview unavailable",
    "no-preview": "No preview available for this change",
};
/**
 * A quiet, neutral notice rendered in place of a diff when a file change has
 * nothing to show — a newly created empty file, or a change whose content is
 * genuinely unavailable.
 *
 * It is the single owner of both messages so the approval gate and the
 * post-execution detail can never drift apart in wording. The two cases are
 * deliberately distinct: an honest "new empty file" requires proof (the gate's
 * proto change type), while everything else degrades to the non-committal
 * "no preview available" rather than misrepresenting an uncaptured change as
 * empty.
 *
 * Styled to match the `Notice` used elsewhere in the change views (neutral
 * border + muted surface, tokens only — DD-005).
 */
export function EmptyChangeNotice({ kind, className }) {
    return (_jsx("div", { role: "status", "data-cursor-target": "empty-change-notice", className: cn("rounded-md border border-border bg-muted-subtle px-3 py-2 text-xs text-muted-foreground", className), children: MESSAGE[kind] }));
}
//# sourceMappingURL=EmptyChangeNotice.js.map